rid*_*nsb 58 iphone ios cordova cordova-plugins
只有在我尝试时才会发生此错误cordova run ios --device
即使在cordova build ios
执行命令后,也会报告非错误.
我做错了什么?以及如何在我的iPhone上调试cordova项目(需要这个,因为需要测试一个Camera功能)
WITH CONFIGURATION Debug ===
Check dependencies
Code Sign error: No provisioning profiles found: No non–expired provisioning profiles were found.
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/ridermansb/Projects/jdapp/platforms/ios/cordova/build-debug.xcconfig,-project,CorrijaMe.xcodeproj,ARCHS=armv7 armv7s arm64,-target,CorrijaMe,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 armv7s arm64,CONFIGURATION_BUILD_DIR=/Users/ridermansb/Projects/jdapp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/ridermansb/Projects/jdapp/platforms/ios/build/sharedpch
ERROR running one or more of the platforms: Error: /Users/ridermansb/Projects/jdapp/platforms/ios/cordova/run: Command failed with exit code 2
You may not have the required environment or OS to run this project
Run Code Online (Sandbox Code Playgroud)
Con*_*nor 51
您需要在构建计算机上使用开发配置文件.应用程序可以在没有配置文件的情况下在模拟器上运行,但它们需要在实际设备上运行.
如果您在Xcode中打开项目,它可能会自动为您设置配置.否则,您必须创建转到iOS开发人员中心并创建配置文件.
小智 39
尝试再次删除并添加ios
ionic platform remove ios
ionic platform add ios
Run Code Online (Sandbox Code Playgroud)
在我的案例中工作
如果合适,用cordova替换离子.
kri*_*ris 21
我尝试做的时候遇到了同样的错误:
cordova build ios
除了我说**存档失败**而不是**BUILD FAILED**.
我通过在Xcode中打开projectName .xcodeproj文件然后调整这两个设置来修复它:
然后我退出Xcode并重新cordova build ios
开始工作.
小智 6
如果每次都执行xcode,则可能会筋疲力尽,因此需要添加以下标志:
或者,如果项目的根目录中有build.json文件,则必须添加以下行:
{
"ios": {
"debug": {
"buildFlag": [
"-UseModernBuildSystem=0"
]
},
"release": {
"buildFlag": [
"-UseModernBuildSystem=0"
]
}
}
}
Run Code Online (Sandbox Code Playgroud)
希望这对将来有帮助
小智 5
我在这个场景中尝试了一些事情。
我删除了ios并安装了很多次。走上了删除启动画面的道路,但无济于事!位码开/关很多次。
然而,在选择了 iOS 配置团队并pod update
在内部运行后./platforms/ios
,我很高兴地宣布这解决了我的问题。
希望您也可以尝试同样的方法并得到一些解决方案?
归档时间: |
|
查看次数: |
91948 次 |
最近记录: |