簡體   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