Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Christian_K_
New Contributor I
268 Views

Intel XDK 3088 IOS Build failed

Jump to solution

Hello,

i have updated to Intel XDK 3088 and i can`t build for IOS. The build for Android is ok.

I see this message without a log.

Build Log

  • Building a Cordova 5.4.1 application.
  • Using platform cordova-ios 4.0.1.
  • The application name is "MyFoodDB"
  • The package name is "de.myfooddb"
  • Plugin "cordova-plugin-splashscreen" (2.1.0) installed.
  • Plugin "cordova-plugin-file" (2.1.0) installed.
  • Plugin "cordova-plugin-statusbar" (1.0.0) installed.
  • Plugin "cordova-plugin-network-information" (1.0.1) installed.
  • Plugin "cordova-plugin-dialogs" (1.1.1) installed.
  • Plugin "cordova-plugin-globalization" (1.0.1) installed.
  • Plugin "cordova-plugin-apprate" (1.1.11) installed.
  • Plugin "cordova-plugin-inappbrowser" (1.0.1) installed.
  • Plugin "cordova-plugin-screen-orientation" (1.4.0) installed.
  • Plugin "hu.dpal.phonegap.plugins.UniqueDeviceID" (1.2.0) installed.
  • Plugin "cordova-plugin-device" (1.1.0) installed.
  • Plugin "de.appplant.cordova.common.registerusernotificationsettings" (1.0.1) installed.
  • Plugin "de.appplant.cordova.plugin.local-notification" (0.8.2) installed.
  • Plugin "cordova-plugin-x-toast" (2.4.0) installed.
  • Plugin "phonegap-plugin-barcodescanner" (4.1.0) installed.

 

Tags (2)
0 Kudos
1 Solution
Swati_S_Intel1
Employee
239 Views

Please check few things. 

1. Please follow this document https://software.intel.com/en-us/xdk/docs/intel-xdk-certificate-management to import your iOS certificate in the XDK. (When you imported your certificate is it possible you had multiple certs and the one you selected is not valid?)

2. Make sure your app ID matches the one provided while generating provisioning profile 

3. Try to build one project created from sample app or blank template and see if it builds without error.

4. If above does not work please send you project in a zip file via PM.

 

View solution in original post

23 Replies
PaulF_IntelCorp
Employee
239 Views

That summary log may have more details below the scroll. Can you scroll down and make sure we have the full summary log?

Christian_K_
New Contributor I
239 Views

Attached the Screenshot. I can`t see more log.

PaulF_IntelCorp
Employee
239 Views

Christian -- try the following:

  • change to CLI 5.1.1 and see if it builds with that option
  • if not, try removing plugins, one-by-one (build between each removal) to see which plugin is causing the problem

Do you have plugins specified in your intelxdk.config.additions.xml file? If so, please remove them from that location and use the plugin manager to add them to your project.

Amrita_C_Intel
Employee
239 Views

Hello,

Are you using correct provisioning profile? I would recommend if you have doubt please try creating provisioning profile again.

Please follow this article in order to that: https://software.intel.com/en-us/xdk/docs/building-cordova-ios-apps-intel-xdk

and can you provide the entire build log?

Christian_K_
New Contributor I
239 Views

I see have this problem also wit CLI 5.1. When i use a false Developer Certificate, then comes a message.

Build Log

  • Building a Cordova 5.4.1 application.
  • Using platform cordova-ios 4.0.1.
  • The application name is "MyFoodDB"
  • The package name is "de.myfooddb"
  • Plugin "cordova-plugin-splashscreen" (3.2.0) installed.
  • Plugin "cordova-plugin-statusbar" (2.1.0) installed.
  • Plugin "cordova-plugin-device" (1.1.1) installed.
  • Targeting iOS version 8.0.
  • Error: A build error occurred. Check the build log.

You can view the full log here

 

I can`t see a message, with my Developer Certificate.

 

Build Log

  • Building a Cordova 5.4.1 application.
  • Using platform cordova-ios 4.0.1.
  • The application name is "MyFoodDB"
  • The package name is "de.myfooddb"
  • Plugin "cordova-plugin-splashscreen" (3.2.0) installed.
  • Plugin "cordova-plugin-statusbar" (2.1.0) installed.
  • Plugin "cordova-plugin-device" (1.1.1) installed.
  •  
Christian_K_
New Contributor I
239 Views

My IOS build was ok, before the Intel XDK 3088 update. I think, the problem is not the provisioning profile.

Swati_S_Intel1
Employee
240 Views

Please check few things. 

1. Please follow this document https://software.intel.com/en-us/xdk/docs/intel-xdk-certificate-management to import your iOS certificate in the XDK. (When you imported your certificate is it possible you had multiple certs and the one you selected is not valid?)

2. Make sure your app ID matches the one provided while generating provisioning profile 

3. Try to build one project created from sample app or blank template and see if it builds without error.

4. If above does not work please send you project in a zip file via PM.

 

View solution in original post

Christian_K_
New Contributor I
239 Views

This solved my problem.

Now i have a problem with IOS build and ScreenOrientation.

1 error generated.

** BUILD FAILED **


The following build commands failed:
	CompileC build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/Objects-normal/armv7/YoikScreenOrientation.o MyFoodDB/Plugins/cordova-plugin-screen-orientation/YoikScreenOrientation.m normal armv7 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,.../builds/build.2016-03-26.10-29-09.i4FjjT.tmp/mobile2/platforms/ios/cordova/build-release.xcconfig,-project,MyFoodDB.xcodeproj,ARCHS=armv7 arm64,-target,MyFoodDB,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=.../builds/build.2016-03-26.10-29-09.i4FjjT.tmp/mobile2/platforms/ios/build/device,SHARED_PRECOMPS_DIR=.../builds/build.2016-03-26.10-29-09.i4FjjT.tmp/mobile2/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,.../builds/build.2016-03-26.10-29-09.i4FjjT.tmp/mobile2/platforms/ios/cordova/build-release.xcconfig,-project,MyFoodDB.xcodeproj,ARCHS=armv7 arm64,-target,MyFoodDB,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=.../builds/build.2016-03-26.10-29-09.i4FjjT.tmp/mobile2/platforms/ios/build/device,SHARED_PRECOMPS_DIR=.../builds/build.2016-03-26.10-29-09.i4FjjT.tmp/mobile2/platforms/ios/build/sharedpch

 

PaulF_IntelCorp
Employee
239 Views

Christian -- please save the detailed build log to a file and then ATTACH that detailed build log to your post, the real error details are above the bit that you posted. Use the "File Attachments" link below the edit window (the forum post edit window) and use the "Attach Media" button to add that detailed build log.

Christian_K_
New Contributor I
239 Views

Attached the log file. Thanks for your help.

PaulF_IntelCorp
Employee
239 Views

Christian -- strange error, but this appears to be the reason for the failure:

In file included from .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-screen-orientation/YoikScreenOrientation.m:24:
.../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-screen-orientation/YoikScreenOrientation.h:26:9: fatal error: 'Cordova/CDVShared.h' file not found
#import <Cordova/CDVShared.h>
        ^

Which implies that something about the screen orientation plugin is amiss. I see that a 1.4.1 release has been pushed to the Cordova registry (see https://www.npmjs.com/package/cordova-plugin-screen-orientation). You might try removing the version you have in your project and adding that newer version and check any issues related to the plugin (https://github.com/gbenvenuti/cordova-plugin-screen-orientation/issues). To add that newer version you'll have to use the "add a third-party" option, like this:

Screen Shot 2016-03-27 at 2.52.12 PM.png

Christian_K_
New Contributor I
239 Views

Thanks. That solved the problem.

When i add the version 1.4.1, than i see in the Intel XDK the version 1.4.0.

Christian_K_
New Contributor I
239 Views

The problem is solved only partly. When i move my iPad, than the screen is not changed. This problem is only with IOS not with Android.

Anusha_M_Intel1
Employee
239 Views

Hi Christian,

Check out this FAQ for information on how to deal with the iPad case: https://software.intel.com/en-us/xdk/faqs/cordova#app-orientation

 

Christian_K_
New Contributor I
239 Views

I have the cordova-plugin-screen-orientation 1.4.0 in my project.

See the documentation.

Alternatively, you can use this plugin: https://github.com/yoik/cordova-yoik-screenorientation. Import it as a third-party Cordova* plugin using the plugin manager with the following information:

  • cordova-plugin-screen-orientation
  • specify a version (e.g. 1.4.0) or leave blank for the "latest" version

 

Amrita_C_Intel
Employee
239 Views

Does this solved your issue?

Christian_K_
New Contributor I
239 Views
No
Christian_K_
New Contributor I
239 Views

What can i do?

PaulF_IntelCorp
Employee
239 Views

Christian -- there's been a lot of activity on this thread with a variety of conflicting answers. Can you summarize where you are right now? Are you still having build problems or just an orientation problem or ??? Might help to start a new thread...

Christian_K_
New Contributor I
40 Views

Thanks for your answer. The first problem was the build with cordova-plugin-screen-orientation 1.4.1. The cordova-plugin-screen-orientation 1.4.0 solved the problem.

The next problem ist the app orientation with iPad. Should i create a new thread?

Reply