Cordova iOS设备编译失败。找不到匹配的配置文件

问题描述:

当我尝试“cordova run ios --device --verbose”时,我在终端中赢得了一个漂亮的错误代码。虽然应用程序在模拟器中加载得很好。 Xcode说构建是成功的。但是,应用程序无法在设备上打开,尽管xcode图标确实出现在带有应用程序名称的设备上,但它会打开一个空白屏幕,左边为“编辑按钮”,中间为“主人”,而“添加按钮“ 在右边。 Xcode也给出了一个警告:“供应配置文件”iOS Team Provisioning Profile:com.Jigari.PayPad“即将过期”,并对Jigari.PayPadUITests说道。“如果任何人有任何想法可以让我的应用程序加载PS:配置文件是最近创建的,而我之前可以将一个其他应用程序(一个流星应用程序)加载到设备上,但这个只是cordova。 这里是版本。和截图 版本: 的Xcode 7.1 科尔多瓦6.3 的iOS 9Cordova iOS设备编译失败。找不到匹配的配置文件

Check dependencies 
Code Sign error: No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier “com.phonegap.helloworld” were found. 

** BUILD FAILED ** 


The following build commands failed: 
    Check dependencies 
(1 failure) 
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/georgeakinian/projects/paypad/platforms/ios/cordova/build-debug.xcconfig,-project,Lucio.xcodeproj,ARCHS=armv7 arm64,-target,Lucio,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/georgeakinian/projects/paypad/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/georgeakinian/projects/paypad/platforms/ios/build/sharedpch 

![enter image description here

enter image description here

enter image description here

enter image description here

任何想法赞赏。

软件包标识符与文件夹结构中的config.xml文件中的应用程序标识不一致。确保代码中的标识与捆绑标识和配置文件以及xcode中的标识相同。

+0

在'config.xml'中更改'widget'上的'id'属性以匹配配置文件中的有效包ID。在这种情况下,将'id =“com.phonegap.helloworld”''更改为'id =“com.Jigari.PayPad”'。 – johnborges

+0

info.plist文件也需要编辑 com.Jigari.PayPad to id =“com.Jigari.PayPad”。 ios版本的config.xml文件也是如此。 –