Software Archive
Read-only legacy content

Ios Build error

ameeduddin_s_
Beginner
704 Views
Hi, I have been trying rigorously to make an ios Build but don't know what is the problem.I have uploaded the certificate and provisioning too.But even trying every thing I have been unsuccessful.Please help me out. Each time I try to build the application the error is like : The build failed. An error occurred while building the application. Verify your build assets are correct and try again. and the error log is : Installing "org.apache.cordova.device-motion" for ios Installing "org.apache.cordova.camera" for ios Installing "org.apache.cordova.file" for ios Installing "org.apache.cordova.media-capture" for ios Installing "org.apache.cordova.device-orientation" for ios Installing "org.apache.cordova.network-information" for ios Installing "org.apache.cordova.contacts" for ios Installing "org.apache.cordova.device" for ios Installing "org.apache.cordova.battery-status" for ios Installing "org.apache.cordova.geolocation" for ios Installing "org.apache.cordova.globalization" for ios Installing "org.apache.cordova.inappbrowser" for ios Installing "org.apache.cordova.media" for ios Installing "org.apache.cordova.dialogs" for ios Installing "org.apache.cordova.vibration" for ios Installing "org.apache.cordova.splashscreen" for ios Installing "com.intel.xdk.audio" for ios Installing "com.intel.xdk.cache" for ios Installing "com.intel.xdk.camera" for ios Installing "com.intel.xdk.contacts" for ios Installing "com.intel.xdk.device" for ios Installing "com.intel.xdk.file" for ios Installing "com.intel.xdk.player" for ios 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: [ 'org.apache.cordova.device-motion', 'org.apache.cordova.camera', 'org.apache.cordova.file', 'org.apache.cordova.media-capture', 'org.apache.cordova.device-orientation', 'org.apache.cordova.network-information', 'org.apache.cordova.contacts', 'org.apache.cordova.device', 'org.apache.cordova.battery-status', 'org.apache.cordova.geolocation', 'org.apache.cordova.globalization', 'org.apache.cordova.inappbrowser', 'org.apache.cordova.media', 'org.apache.cordova.dialogs', 'org.apache.cordova.vibration', 'org.apache.cordova.splashscreen', 'com.intel.xdk.audio', 'com.intel.xdk.cache', 'com.intel.xdk.camera', 'com.intel.xdk.contacts', 'com.intel.xdk.device', 'com.intel.xdk.file', 'com.intel.xdk.player' ] Writing out cordova_plugins.js... Wrote out iOS Bundle Identifier to "com.profile.distribution" Wrote out iOS Bundle Version to "1.0.0" mv: dest file already exists: .../zahnk/platforms/ios/zahnk/Zahnk-Info.plist mv: dest file already exists: .../zahnk/platforms/ios/zahnk/Zahnk-Prefix.pch shell.js: internal error Error: EINVAL, invalid argument '.../zahnk/platforms/ios/zahnk.xcodeproj' at Object.fs.renameSync (fs.js:543:18) at /Developer/cordova/4.1.2/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/mv.js:77:8 at Array.forEach (native) at Object._mv (/Developer/cordova/4.1.2/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/mv.js:53:11) at Object.mv (/Developer/cordova/4.1.2/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/common.js:186:23) at pbxProject. (/Developer/cordova/4.1.2/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/ios_parser.js:162:27) at pbxProject.EventEmitter.emit (events.js:98:17) at pbxProject. (/Developer/cordova/4.1.2/node_modules/cordova/node_modules/cordova-lib/node_modules/xcode/lib/pbxProject.js:30:18) at ChildProcess.EventEmitter.emit (events.js:98:17) at handleMessage (child_process.js:322:10) The build log displays :------- Building a Cordova 4.1.2 application. The application name is "Zahnk" The package name is "com.profile.distribution" Will use the provisioning profile for "adhoc" Plugin "org.apache.cordova.device-motion" (0.2.11) installed. Plugin "org.apache.cordova.camera" (0.3.4) installed. Plugin "org.apache.cordova.file" (1.3.2) installed. Plugin "org.apache.cordova.media-capture" (0.3.5) installed. Plugin "org.apache.cordova.device-orientation" (0.3.10) installed. Plugin "org.apache.cordova.network-information" (0.2.14) installed. Plugin "org.apache.cordova.contacts" (0.2.15) installed. Plugin "org.apache.cordova.device" (0.2.13) installed. Plugin "org.apache.cordova.battery-status" (0.2.12) installed. Plugin "org.apache.cordova.geolocation" (0.3.11) installed. Plugin "org.apache.cordova.globalization" (0.3.3) installed. Plugin "org.apache.cordova.inappbrowser" (0.5.4) installed. Plugin "org.apache.cordova.media" (0.2.15) installed. Plugin "org.apache.cordova.dialogs" (0.2.11) installed. Plugin "org.apache.cordova.vibration" (0.3.12) installed. Plugin "org.apache.cordova.splashscreen" (0.3.5) installed. Plugin "com.intel.xdk.audio" (1.0.0) installed. Plugin "com.intel.xdk.cache" (1.0.0) installed. Plugin "com.intel.xdk.camera" (1.0.5) installed. Plugin "com.intel.xdk.contacts" (1.0.4) installed. Plugin "com.intel.xdk.device" (1.0.9) installed. Plugin "com.intel.xdk.file" (1.0.1) installed. Plugin "com.intel.xdk.player" (1.0.0) installed. Targeting iOS version 6. An unexpected error occured while attempting to build the application please provide a workaround how to resolve this issue.Its been days since I am stuck into this. Also please note I am using a distribution provisioning profile and have selected adhoc as well as production in the project -> build settings and have named the APP Id as the bundle identifier of the provisioning profile.I have also included the provisioning in the www folder of the app. Please help me out Ameeduddin
0 Kudos
4 Replies
Amrita_C_Intel
Employee
704 Views

Hi,

Is it possible for you to email me your code? So that I can look into  and help to resolve your problem.

Thanks,

Amrita

0 Kudos
John_H_Intel2
Employee
704 Views

A couple things to try.

1. Your BundleID seems pretty generic, not specific to your app (com.profile.distribution). Is that what you have setup on Apples site?

2. Can you Change the name of your app from "Zahnk" to something else like, "abcdef".  The reason being, I  have seen the EINVAL error before and it relates to the name you created your project with (shows up as in the XDK) and what you specify in the build settings. If they are the same, but the case is different, Cordova has an issue. So to rule this out, change it to something else.

3. Do you have  a build log that you can download and attach to this post?

0 Kudos
ameeduddin_s_
Beginner
704 Views
The App ID that I have used is "com.profile.distribution".It is the bundle identifier of the provisioning profile that i have used in the application. So do you suggest I should change the App ID to something like com.zahnk.MyApp I did change the App name to zahnk which is also the project name .But still the error persisted.
0 Kudos
John_H_Intel2
Employee
704 Views

Look at the build log (the one you click on ) at the end of a failed build. You will see this:

Check dependencies
Code Sign error: Provisioning profile does not match bundle identifier: The provisioning profile specified in your build settings (“ProfileInhouseDistribution”) has an AppID of “com.profile.distribution” which does not match your bundle identifier “not.yet.specified”.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.0'

** BUILD FAILED **

In the XDK, under the Projects tab, you never changed the bundle ID to match what you created on Apples site,  

 

This appears earlier in the log,

Wrote out iOS Bundle Identifier to "not.yet.specified"

 

0 Kudos
Reply