Software Archive
Read-only legacy content
17061 Discussions

Cordova iOS build failing latest xdk v2323

Vivek_P_
Beginner
592 Views

Hi,

I am trying to build an iOS adHoc app for cordova 4.1.2. Yesterday I updated my intel xdk to v2323 which updated the intel app security plugin to v1.3 and since then my iOS builds are failing whereas my android builds are working totally fine.

Following is the error message I am receiving:

Ld build/appname.build/Release-iphoneos/appname.build/Objects-normal/armv7s/appname normal armv7s
    cd .../projectname/platforms/ios
    export IPHONEOS_DEPLOYMENT_TARGET=5.1.1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Developer/android-sdk-macosx/tools:/usr/local/ant/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L.../projectname/platforms/ios/build/device -L.../projectname/platforms/ios/appname/Plugins/com.intel.security -F.../projectname/platforms/ios/build/device -filelist .../projectname/platforms/ios/build/appname.build/Release-iphoneos/appname.build/Objects-normal/armv7s/appname.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=5.1.1 -framework AssetsLibrary .../projectname/platforms/ios/build/device/libCordova.a -framework CoreGraphics -framework MobileCoreServices -framework CoreMotion -weak_framework AudioToolbox -framework StoreKit -framework AVFoundation -framework CoreVideo -framework MessageUI -framework QuartzCore -framework SystemConfiguration -liconv -weak_framework Social -weak_framework ImageIO -framework CoreLocation -lsService -lkeyStore -lcrypto -lcurl -ljansson -lc++ -lstdc++ -Xlinker -dependency_info -Xlinker .../projectname/platforms/ios/build/appname.build/Release-iphoneos/appname.build/Objects-normal/armv7s/appname_dependency_info.dat -o .../projectname/platforms/ios/build/appname.build/Release-iphoneos/appname.build/Objects-normal/armv7s/appname
ld: file is universal (4 slices) but does not contain a(n) armv7s slice: .../projectname/platforms/ios/appname/Plugins/com.intel.security/libsService.a file '.../projectname/platforms/ios/appname/Plugins/com.intel.security/libsService.a' for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Ld build/appname.build/Release-iphoneos/appname.build/Objects-normal/arm64/appname normal arm64
    cd .../projectname/platforms/ios
    export IPHONEOS_DEPLOYMENT_TARGET=5.1.1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Developer/android-sdk-macosx/tools:/usr/local/ant/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L.../projectname/platforms/ios/build/device -L.../projectname/platforms/ios/appname/Plugins/com.intel.security -F.../projectname/platforms/ios/build/device -filelist .../projectname/platforms/ios/build/appname.build/Release-iphoneos/appname.build/Objects-normal/arm64/appname.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=5.1.1 -framework AssetsLibrary .../projectname/platforms/ios/build/device/libCordova.a -framework CoreGraphics -framework MobileCoreServices -framework CoreMotion -weak_framework AudioToolbox -framework StoreKit -framework AVFoundation -framework CoreVideo -framework MessageUI -framework QuartzCore -framework SystemConfiguration -liconv -weak_framework Social -weak_framework ImageIO -framework CoreLocation -lsService -lkeyStore -lcrypto -lcurl -ljansson -lc++ -lstdc++ -Xlinker -dependency_info -Xlinker .../projectname/platforms/ios/build/appname.build/Release-iphoneos/appname.build/Objects-normal/arm64/appname_dependency_info.dat -o .../projectname/platforms/ios/build/appname.build/Release-iphoneos/appname.build/Objects-normal/arm64/appname

** BUILD FAILED **


The following build commands failed:
    Ld build/appname.build/Release-iphoneos/appname.build/Objects-normal/armv7s/appname normal armv7s
(1 failure)
Command finished with error code 65: .../projectname/platforms/ios/cordova/build --release,--device
Error: .../projectname/platforms/ios/cordova/build: Command failed with exit code 65
    at ChildProcess.whenDone (/Developer/cordova/4.1.2/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:753:16)
    at Process.ChildProcess._handle.onexit (child_process.js:820:5)

 

Please help me figure out the cause of this error.

0 Kudos
6 Replies
John_H_Intel2
Employee
592 Views

I have replicated this and let the developers know. We should get this fixed soon.

0 Kudos
John_H_Intel2
Employee
592 Views

Fixed! Try building your app again and it should work now.

0 Kudos
Vivek_P_
Beginner
592 Views

Thanks a lot. I can successfully build cordova iOS apps now.

0 Kudos
Tony_Y_1
Beginner
592 Views
** BUILD FAILED ** The following build commands failed: Ld build/SiteWebH5.build/Release-iphoneos/SiteWebH5.build/Objects-normal/armv7s/SiteWebH5 normal armv7s (1 failure) Command finished with error code 65: .../SiteWeb_App_HTML5_1/platforms/ios/cordova/build --release,--device Error: .../SiteWeb_App_HTML5_1/platforms/ios/cordova/build: Command failed with exit code 65 at ChildProcess.whenDone (/Developer/cordova/4.1.2/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:753:16) at Process.ChildProcess._handle.onexit (child_process.js:820:5) i have the same problem.how to do?
0 Kudos
Tony_Y_1
Beginner
592 Views

The same error still exists, v2893

how to do? Abandon the xdk platform?

0 Kudos
John_H_Intel2
Employee
592 Views

Tony ~

You need to provide us with more information for us to be able to assist you. Please attach your build log and elaborate on the issue you are facing.

0 Kudos
Reply