Why cordova-ios@4.0.1 don't build?


#1

Hi,
i update cordova-ios for version 4.0.1 and my app don’t build!
However, the build is 3.9.2 going with success!
What’s the problem?

** BUILD FAILED **


The following build commands failed:
	CompileC build/todo.build/Debug-iphonesimulator/todo.build/Objects-normal/i386/MainViewController.o todo/Classes/MainViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
ERROR building one of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,/Volumes/ZAR 500GB/Work/epam/adidas/app/todo/platforms/ios/cordova/build-debug.xcconfig,-project,todo.xcodeproj,ARCHS=i386,-target,todo,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Volumes/ZAR 500GB/Work/epam/adidas/app/todo/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Volumes/ZAR 500GB/Work/epam/adidas/app/todo/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,/Volumes/ZAR 500GB/Work/epam/adidas/app/todo/platforms/ios/cordova/build-debug.xcconfig,-project,todo.xcodeproj,ARCHS=i386,-target,todo,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Volumes/ZAR 500GB/Work/epam/adidas/app/todo/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Volumes/ZAR 500GB/Work/epam/adidas/app/todo/platforms/ios/build/sharedpch

#2

I’m hitting this as well.


#3

Did you solve this? …


#4

Hi - we had a similar problem – what version Cordova do you have? You can find this out by cordova -v

What cordova plugins do you have installed + their versions?

Sometimes outdated Cordova plugins that support cordova-ios 3.x.x will not play nice with cordova 4.x.x.

If you can provide these details, I might be able to look into this further. We had to upgrade a lot of our older cordova third-party plugins, as well as upgrade to Cordova 5.


#5

Same problem here when I test a new project based on Sidemenu template (ionic start testApp sidemenu) on ios 4.0.1 but seems to be solved if I update to 4.1.0.

Config :

Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.8.4
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v4.2.4
Xcode version: Xcode 7.2.1 Build version 7C1002

When I use the installed ios platform (ios 3.8.0) I can build ios with no problem.
Installed plugins are :
cordova-plugin-console 1.0.2 "Console"
cordova-plugin-device 1.1.1 "Device"
cordova-plugin-splashscreen 3.1.0 "Splashscreen"
cordova-plugin-statusbar 2.1.1 "StatusBar"
cordova-plugin-whitelist 1.2.1 "Whitelist"
ionic-plugin-keyboard 1.0.8 “Keyboard”

When I update platform (ionic platform update ios) I get iOS project updated with cordova-ios@4.0.1
And then the ionic build ios command fail (same error as @severenit)

If I try ionic platform update ios@4.1.0 the build succeeded


#6

Thank you very much, this was driving me crazy.
Having had to do an “ionic platform rm ios”, when I added back in, it added 4.0.1, which subsequently wouldn’t build. However, updating to ios@4.1.0 has done the job!!!