xcode 运行cordova build ios --release 时出错(退出代码1)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/50323982/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
An error occurred while running cordova build ios --release (exit code 1)
提问by Anil Kumar Ram
I am trying to build an ionic project using
我正在尝试使用构建一个离子项目
ionic cordova build ios --release
, but I am getting BUILD FAILED error.
,但我收到 BUILD FAILED 错误。
The following build commands failed: Ld /Users/anilram25/Library/Developer/Xcode/DerivedData/Projectname-dhymtjexvkoysbcnqkakvypnvisi/Build/Intermediates.noindex/Projectname.build/Release-iphonesimulator/Projectname.build/Objects-normal/x86_64/Projectname normal x86_64 (1 failure) Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/anilram25/Project/0.2.9/platforms/ios/cordova/build-release.xcconfig,-workspace,Projectname.xcworkspace,-scheme,Projectname,-configuration,Release,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/anilram25/Project/0.2.9/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/anilram25/Project/0.2.9/platforms/ios/build/sharedpch
[ERROR] An error occurred while running cordova build ios --release (exit code 1).
以下构建命令失败:Ld /Users/anilram25/Library/Developer/Xcode/DerivedData/Projectname-dhymtjexvkoysbcnqkakvypnvisi/Build/Intermediates.noindex/Projectname.build/Release-iphonesimulator/Projectname.build/Objects-normal/x86_64/Projectname normal x86_64(1 次失败)错误:命令的错误代码 65:带有参数的 xcodebuild:-xcconfig,/Users/anilram25/Project/0.2.9/platforms/ios/cordova/build-release.xcconfig,-workspace,Projectname.xcworkspace, -scheme,Projectname,-configuration,Release,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/anilram25/Project/0.2.9/platforms/ios/build/emulator ,SHARED_PRECOMPS_DIR=/Users/anilram25/Project/0.2.9/platforms/ios/build/sharedpch
[错误] 运行cordova build ios --release 时出错(退出代码1)。
Please suggest me some solutions.
请建议我一些解决方案。
回答by IAmCoder
Make sure you have a development provisioning profile configured in Xcode.
确保您在 Xcode 中配置了开发配置文件。
Try to remove and add ios again:
尝试删除并再次添加ios:
ionic cordova platform remove ios
ionic cordova platform add ios
And make sure you have the latest platform update:
并确保您拥有最新的平台更新:
ionic cordova platform update ios