Ionic构建iOS-失败

Ionic构建iOS-失败,ios,cordova,mobile,ionic-framework,phonegap-build,Ios,Cordova,Mobile,Ionic Framework,Phonegap Build,我已经在这个项目上工作了好几个月了,没有什么大问题。今天,我甚至不能让它建立起来。我运行了“$ionic resources”,现在我的构建根本无法运行 我得到了这个错误: ** BUILD FAILED ** The following build commands failed: CompileAssetCatalog build/emulator/Stopper.app Stopper/Images.xcassets (1 failure) ERROR building

我已经在这个项目上工作了好几个月了,没有什么大问题。今天,我甚至不能让它建立起来。我运行了“$ionic resources”,现在我的构建根本无法运行

我得到了这个错误:

    ** 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平台)

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

然后在ios/android上构建代码

ionic build ios
ionic build android
这个给我修好了

也许你也应该跑步

sudo ionic resources

生成新的图标和启动屏幕

你能尝试删除iOS平台并再次添加它和构建吗?我尝试了$ionic platform rm iOS,然后$ionic platform添加iOS,然后$ionic构建iOS,不断得到错误代码65,这就是我在之前的评论中的意思。希望它解决了你的问题。一切都很好。我现在让它工作,并上传到苹果。无论如何谢谢你
ionic build ios
ionic build android
sudo ionic resources