繁体   English   中英

Ionic Build iOS-失败

[英]Ionic Build iOS - Fail

我在这个项目上工作了几个月,没有重大问题。 今天,我什至无法建立它。 我运行“ $ ionic资源”,现在我的构建完全无法使用。

我收到此错误:

    ** BUILD FAILED **


The following build commands failed:
    CompileAssetCatalog build/emulator/Stopper.app Stopper/Images.xcassets
(1 failure)
ERROR building one of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/colemanjeff/GitHub/StopperRC1/platforms/ios/cordova/build-debug.xcconfig,-project,Stopper.xcodeproj,ARCHS=i386,-target,Stopper,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/colemanjeff/GitHub/StopperRC1/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/colemanjeff/GitHub/StopperRC1/platforms/ios/build/sharedpch
You may not have the required environment or OS to build this project
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/colemanjeff/GitHub/StopperRC1/platforms/ios/cordova/build-debug.xcconfig,-project,Stopper.xcodeproj,ARCHS=i386,-target,Stopper,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/colemanjeff/GitHub/StopperRC1/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/colemanjeff/GitHub/StopperRC1/platforms/ios/build/sharedpch

我不确定是什么原因导致了问题或如何解决。 有人知道吗

原来,我确实确实需要卸载平台,删除插件的json文件,然后重新安装所有内容。

运行(这将删除旧的离子ios平台)

sudo ionic platform rm ios

然后(这将安装具有特权的新平台)

sudo ionic platform add ios

然后构建代码ios / android

ionic build ios
ionic build android

这为我解决了!

可能是您还应该跑步

sudo ionic resources

生成新的图标和启动屏幕。

基本上,重新安装平台和插件可以再次解决此问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM