- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have an app which compiles fine for Android but fails for iOS.
I have Tried with Cordova and without.
I get this error in the log
cordova library for "ios" already exists. No need to download. Continuing.
Generating config.xml from defaults for platform "ios"
Calling plugman.prepare for platform "ios"
Preparing ios project
Processing configuration changes for plugins.
Iterating over installed plugins: []
Writing out cordova_plugins.js...
Wrote out iOS Bundle Identifier to "MyApp"
Wrote out iOS Bundle Version to "0.0.1"
Wrote out iOS Product Name and updated XCode project file names from "MyAppV2" to "MyApp".
************* Processing the main config.xml file (after_prepare) *****************
App Directory = [.../MyAppV2]
Will process and update the following config files:
Config.xml = [.../MyAppV2/www/config.xml]
Namespaces:
prefix/uri ''/'http://www.w3.org/ns/widgets'
prefix/uri 'intelxdk'/'http://xdk.intel.com/ns/v1'
Name of the app is [MyApp]
Updating full app name to [MyApp]
Processing preference permissions
Updating the versionName
Setting [CFBundleShortVersionString] to 0.0.1
Processing config file values
Image height/width = 180/180
Copied image file icon-60@3x
Copying [.../MyAppV2/www/images/180x180.png] to [.../MyAppV2/platforms/ios/build/device/MyApp.app/icon-60@3x.png
Image height/width = 120/120
Copied image file icon-60@2x
Image height/width = 60/60
Copied image file icon-60
Image height/width = 152/152
Copied image file icon-76@2x
Image height/width = 76/76
Copied image file icon-76
updated icon list to [['icon', 'icon@2x', 'icon-60', 'icon-60@2x', 'icon-72', 'icon-72@2x', 'icon-76', 'icon-76@2x', 'icon-60@3x']]
Copying the iPhone 6 Portrait [.../MyAppV2/www/images/750x1334splash.png] (750w x 1334h) splash screen to .../MyAppV2/platforms/ios/MyApp/Resources/splash/Default-667h@2x.png.
Copying [.../MyAppV2/www/images/750x1334splash.png] to [.../MyAppV2/platforms/ios/build/device/MyApp.app/Default-667h@2x.png
Copying the iPhone 6 Plus Portrait [.../MyAppV2/www/images/1242x2208splash.png] (1242w x 2208h) splash screen to .../MyAppV2/platforms/ios/MyApp/Resources/splash/Default-736h@3x.png.
Copying [.../MyAppV2/www/images/1242x2208splash.png] to [.../MyAppV2/platforms/ios/build/device/MyApp.app/Default-736h@3x.png
Copying the iPhone 5 [.../MyAppV2/www/images/640x1136splash.png] (640w x 1136h) splash screen to .../MyAppV2/platforms/ios/MyApp/Resources/splash/Default-568h@2x~iphone.png.
Copying the iPhone Retina [.../MyAppV2/www/images/640x960splash.png] (640w x 960h) splash screen to .../MyAppV2/platforms/ios/MyApp/Resources/splash/Default@2x~iphone.png.
Copying the iPhone [.../MyAppV2/www/images/320x480splash.png] (320w x 480h) splash screen to .../MyAppV2/platforms/ios/MyApp/Resources/splash/Default~iphone.png.
Copying the iPad Retina portrait [.../MyAppV2/www/images/1536x2008splash.png] (1536w x 2008h) splash screen to .../MyAppV2/platforms/ios/MyApp/Resources/splash/Default-Portrait@2x~ipad.png.
Copying the iPad portrait [.../MyAppV2/www/images/768x1004splash.png] (768w x 1004h) splash screen to .../MyAppV2/platforms/ios/MyApp/Resources/splash/Default-Portrait~ipad.png.
No splash screen supplied for iPhone 6 Plus Landscape (2208w x1242h).
No splash screen supplied for iPad Retina Landscape (2048w x1496h). The default will be provided.
No splash screen supplied for iPhone 6 Landscape (1334w x750h).
No splash screen supplied for iPad Landscape (1024w x748h). The default will be provided.
Saving config.xml to [.../MyAppV2/www/config.xml]
Saving info.plist to [.../MyAppV2/platforms/ios/MyApp/MyApp-Info.plist]
************* Completed processing the main config.xml file (after_prepare) *****************
Compiling app on platform "ios" via command ".../MyAppV2/platforms/ios/cordova/build" --release --device --nohooks .
More than one flag provided, specify either --debug or --release only
child_process.spawn(.../MyAppV2/platforms/ios/cordova/build,[--release, --device, --nohooks, .]) = 2
/Developer/cordova/3.3.1-0.1.2/node_modules/cordova/node_modules/q/q.js:126
throw e;
^
Error: An error occurred while building the ios project.
at ChildProcess.<anonymous> (/Developer/cordova/3.3.1-0.1.2/node_modules/cordova/src/compile.js:65:22)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:753:16)
at Socket.<anonymous> (child_process.js:966:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
This is the error from the Build Screen
The build failed. An error occurred while building the application. Verify your build assets are correct and try again.
You can view the log of the iOS build here
Build Log:
Building a Cordova 3.3 application.
Warning: On February 1, 2015, Apple will require 32 and 64 bit binaries for all applications submitted to the App Store. Cordova CLI 3.3 does not produce 64 bit binaries and applications created with Cordova CLI 3.3 will be rejected during app submission. It is recommended that you build your application with Cordova CLI 3.5. You can view the Apple announcement for more details.
The application name is "MyApp"
The package name is "MyApp"
Will use the provisioning profile for "production"
No plugins were found in the intelxdk.config.xml file.
Warning: Invalid iOS Target (5). Defaulting to iOS 7.
Copied 180x180.png (180x180) image file to icon-60@3x
Copied 120x120.png (120x120) image file to icon-60@2x
Copied 60x60.png (60x60) image file to icon-60
Copied 152x152.png (152x152) image file to icon-76@2
Copied 76x76.png (76x76) image file to icon-76
Copied the iPhone 6 Portrait [750x1334splash.png] (750w x 1334h) splash screen to Default-667h@2x.
Copied the iPhone 6 Plus Portrait [1242x2208splash.png] (1242w x 2208h) splash screen to Default-736h@3x.
Copied the iPhone 5 [640x1136splash.png] (640w x 1136h) splash screen to Default-568h@2x~iphone.
Copied the iPhone Retina [640x960splash.png] (640w x 960h) splash screen to Default@2x~iphone.
Copied the iPhone [320x480splash.png] (320w x 480h) splash screen to Default~iphone.
Copied the iPad Retina portrait [1536x2008splash.png] (1536w x 2008h) splash screen to Default-Portrait@2x~ipad.
Copied the iPad portrait [768x1004splash.png] (768w x 1004h) splash screen to Default-Portrait~ipad.
Warning: No splash screen supplied for iPhone 6 Plus Landscape (2208w x1242h).
Warning: No splash screen supplied for iPad Retina Landscape (2048w x1496h). The default will be provided.
Warning: No splash screen supplied for iPhone 6 Landscape (1334w x750h).
Warning: No splash screen supplied for iPad Landscape (1024w x748h). The default will be provided.
An unexpected error occured while attempting to build the application.
I have changed the App name in the text
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Meant to say, note the error here
/Developer/cordova/3.3.1-0.1.2/node_modules/cordova/node_modules/q/q.js:126
throw e;
^
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Change the iOS target version (Build Settings) to 5.1.1.
I think it will solve this issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Do I do think in the config.xml file, I cannot see were to do it within the XDK build options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry didn't check last post, should have said:
Do I do the changes in the config.xml file as I cannot see where to do the changes in the XDK build options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can´t change in the config.xml file. The system will override that.
You need to change this option at XDK: PROJECT tab, Cordova 3.x Hybrid Mobile APP Settings, Build Settings, iOS tab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
No I get the same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Make sure your appID in the build settings matches what you created in the apple developer portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Sorry it is and I still get the same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure what the issue is. Your apps is currently 50 Mb. Can you try reducing the size of it and reupload, and build to see if there is a connection issue going on?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi John
I have just received an email with a successful build for iOS. I'm current on a different project, so not sure how that was generated.
The project size looks like an asset issue there isn't much code. All Assets are compressed jpeg except app icons.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try using png's instead a jpeg files and see if that makes a difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The reason I used JPEG files was to keep the size down, the PNG files were huge by comparison because of the hi resolution images for the iPads and retina displays.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regardless, you said you got a successful build email. That means that it worked once for you :)
I have seen issues where very large apps can fail to build since they need to be transferred around in the cloud.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Has this been resolved? Or does anyone know why the error gets triggered? I get this alot also. Even on a build that passed before. I tried all of the basic explanations posted here and everywhere else, even the simple one's. Did anyone get a clear reason or solution? Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This has been resolved and was a Cordova 3.3 issue.
One item of note, Cordova 3.3 does not produce arm64 binaries and cannot be submitted to the app store (as of Feb 1, 2015). You can still build for 3.3 but if you want to submit to the Apple store you willI need to build with Cordova 3.5 or 4.1.2.
Eric
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page