Build error: export failed on iOS

524 views
Skip to first unread message

mispro...@gmail.com

unread,
Aug 29, 2016, 1:58:04 AM8/29/16
to CodenameOne Discussions
Dear Sir,

When I build iOS, there is build error return below:
** EXPORT FAILED **

Executing: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -exportArchive -archivePath MainUI.xcarchive -exportPath /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build5205840142536630191xxx/result -exportOptionsPlist /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/export7248645495848927481.plist -verbose PROVISIONING_PROFILE=328a3a28-71aa-4aec-90b3-6194a8ef8dc8 CODE_SIGN_IDENTITY=iPhone Developer: Siu Ning Chong (B5AQ6LL7NK) KEYCHAIN=/Users/administrator/Library/Keychains/temp1472437613530.keychain CODE_SIGN_ENTITLEMENTS=/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/Entitlements2188683513415872912.plist 2016-08-28 21:52:30.348 xcodebuild[77158:31544019] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/MainUI_2016-08-28_21-52-30.347.xcdistributionlogs'.
2016-08-28 21:52:30.372 xcodebuild[77158:31544019] [MT] DeveloperPortal: Using pre-existing current store at URL (file:///Users/administrator/Library/Developer/Xcode/DeveloperPortal%207.3.1.db).
2016-08-28 21:52:30.519 xcodebuild[77158:31544019] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fe64aa56840>: Error Domain=IDEDistributionErrorDomain Code=1 "(null)"
error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)

Error Domain=IDEDistributionErrorDomain Code=1 "(null)"

** EXPORT FAILED **

Failed export step

Please advice what it is happening?

Thanks and Regards,
Ronald

mispro...@gmail.com

unread,
Aug 29, 2016, 9:23:06 PM8/29/16
to CodenameOne Discussions, mispro...@gmail.com
Any udpate?

Thanks,

mispro...@gmail.com

unread,
Aug 29, 2016, 9:23:41 PM8/29/16
to CodenameOne Discussions, mispro...@gmail.com
Any update? (typo in previous post)

mispro...@gmail.com

unread,
Aug 30, 2016, 12:13:48 AM8/30/16
to CodenameOne Discussions, mispro...@gmail.com
Dear sir,

** ARCHIVE SUCCEEDED **

Executing: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -exportArchive -archivePath MainUI.xcarchive -exportPath /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build195882500309406593xxx/result -exportOptionsPlist /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/export104016930260505267.plist -verbose PROVISIONING_PROFILE=be276ebd-0d53-4881-abe7-80119d225ee4 CODE_SIGN_IDENTITY=iPhone Developer: Siu Ning Chong (B5AQ6LL7NK) KEYCHAIN=/Users/administrator/Library/Keychains/temp1472528924626.keychain CODE_SIGN_ENTITLEMENTS=/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/Entitlements4818997565585990109.plist 2016-08-29 23:04:25.949 xcodebuild[4125:32137955] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/MainUI_2016-08-29_23-04-25.949.xcdistributionlogs'.
2016-08-29 23:04:25.975 xcodebuild[4125:32137955] [MT] DeveloperPortal: Using pre-existing current store at URL (file:///Users/administrator/Library/Developer/Xcode/DeveloperPortal%207.3.1.db).
2016-08-29 23:04:26.147 xcodebuild[4125:32137955] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fb3ab66dda0>: Error Domain=IDEDistributionErrorDomain Code=1 "(null)"
error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)

Error Domain=IDEDistributionErrorDomain Code=1 "(null)"

** EXPORT FAILED **

Executing: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -exportArchive -archivePath MainUI.xcarchive -exportPath /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build195882500309406593xxx/result -exportOptionsPlist /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/export104016930260505267.plist -verbose PROVISIONING_PROFILE=be276ebd-0d53-4881-abe7-80119d225ee4 CODE_SIGN_IDENTITY=iPhone Developer: Siu Ning Chong (B5AQ6LL7NK) KEYCHAIN=/Users/administrator/Library/Keychains/temp1472528924626.keychain CODE_SIGN_ENTITLEMENTS=/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/Entitlements4818997565585990109.plist 2016-08-29 23:04:26.462 xcodebuild[4126:32137971] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/MainUI_2016-08-29_23-04-26.462.xcdistributionlogs'.
2016-08-29 23:04:26.488 xcodebuild[4126:32137971] [MT] DeveloperPortal: Using pre-existing current store at URL (file:///Users/administrator/Library/Developer/Xcode/DeveloperPortal%207.3.1.db).
2016-08-29 23:04:26.637 xcodebuild[4126:32137971] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fa39659fbb0>: Error Domain=IDEDistributionErrorDomain Code=1 "(null)"
error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)

Error Domain=IDEDistributionErrorDomain Code=1 "(null)"

** EXPORT FAILED **

I have tried another project to build which is successfully built before, but the same problem above now. I'm appreciated if you could advise in asap.

Thanks and Regards,
Ronald

Shai Almog

unread,
Aug 30, 2016, 12:16:06 AM8/30/16
to CodenameOne Discussions, mispro...@gmail.com
Hi,
This is related to the xcode server migration:

https://www.codenameone.com/blog/xcode-migration-take-2.html

Is this still happening in current builds?
Is this working with the iphone_old builds?

What can you tel us about your project? Native code, cn1libs anything special?

mcell...@gmail.com

unread,
Aug 31, 2016, 10:44:15 AM8/31/16
to CodenameOne Discussions, mispro...@gmail.com
Hi - I got this error today. Not for release builds (which I've been doing the last few weeks - enterprise builds) but for a debug build - so this may not have actually appeared today but I've only just seen it today.

I do use cn1libs - specifically the barcode one and a bouncycastle one.

Just trying to do an iPhone_old build now though it's been queued for a while :(

Paul

Shai Almog

unread,
Sep 1, 2016, 1:21:57 AM9/1/16
to CodenameOne Discussions, mispro...@gmail.com, mcell...@gmail.com
We just migrated some of the iphone_old servers to the latest so this should speed up current builds.
As part of that we might have broken some things. We made some fixes, if you still experience issues with the current iphone target we will need the full log.

mispro...@gmail.com

unread,
Sep 1, 2016, 10:57:46 PM9/1/16
to CodenameOne Discussions, mispro...@gmail.com, mcell...@gmail.com
Dear Shai,

I see the build error still be here, may you provide any solution to us?

    /usr/bin/codesign --force --sign EA3D310F5B996D64D7CAA9380D764EBAC68B97A5 --entitlements /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build3271767606307597911xxx/dist/build/Build/Intermediates/ArchiveIntermediates/MainUI/IntermediateBuildFilesPath/MainUI.build/Release-iphoneos/MainUI.build/MainUI.app.xcent --timestamp=none /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build3271767606307597911xxx/dist/build/Build/Intermediates/ArchiveIntermediates/MainUI/InstallationBuildProductsLocation/Applications/MainUI.app

Validate build/Build/Intermediates/ArchiveIntermediates/MainUI/InstallationBuildProductsLocation/Applications/MainUI.app
    cd /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build3271767606307597911xxx/dist
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/administrator/.jenv/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
    export PRODUCT_TYPE=com.apple.product-type.application
    builtin-validationUtility /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build3271767606307597911xxx/dist/build/Build/Intermediates/ArchiveIntermediates/MainUI/InstallationBuildProductsLocation/Applications/MainUI.app -validate-for-store

** ARCHIVE SUCCEEDED **

Executing: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -exportArchive -archivePath MainUI.xcarchive -exportPath /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build3271767606307597911xxx/result -exportOptionsPlist /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/export6936324202531321317.plist -verbose PROVISIONING_PROFILE=328a3a28-71aa-4aec-90b3-6194a8ef8dc8 CODE_SIGN_IDENTITY=iPhone Developer: Siu Ning Chong (B5AQ6LL7NK) KEYCHAIN=/Users/administrator/Library/Keychains/temp1472779553348.keychain CODE_SIGN_ENTITLEMENTS=/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/Entitlements2409741723831741583.plist 2016-09-01 20:35:07.487 xcodebuild[67833:998302] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/MainUI_2016-09-01_20-35-07.484.xcdistributionlogs'.
2016-09-01 20:35:07.520 xcodebuild[67833:998302] [MT] DeveloperPortal: Using pre-existing current store at URL (file:///Users/administrator/Library/Developer/Xcode/DeveloperPortal%207.3.1.db).
2016-09-01 20:35:07.790 xcodebuild[67833:998302] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fbb8669cfe0>: Error Domain=IDEDistributionErrorDomain Code=1 "(null)"
error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)

Error Domain=IDEDistributionErrorDomain Code=1 "(null)"

** EXPORT FAILED **

Executing: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -exportArchive -archivePath MainUI.xcarchive -exportPath /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build3271767606307597911xxx/result -exportOptionsPlist /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/export6936324202531321317.plist -verbose PROVISIONING_PROFILE=328a3a28-71aa-4aec-90b3-6194a8ef8dc8 CODE_SIGN_IDENTITY=iPhone Developer: Siu Ning Chong (B5AQ6LL7NK) KEYCHAIN=/Users/administrator/Library/Keychains/temp1472779553348.keychain CODE_SIGN_ENTITLEMENTS=/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/Entitlements2409741723831741583.plist 2016-09-01 20:35:08.139 xcodebuild[67834:998321] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/MainUI_2016-09-01_20-35-08.139.xcdistributionlogs'.
2016-09-01 20:35:08.163 xcodebuild[67834:998321] [MT] DeveloperPortal: Using pre-existing current store at URL (file:///Users/administrator/Library/Developer/Xcode/DeveloperPortal%207.3.1.db).
2016-09-01 20:35:08.323 xcodebuild[67834:998321] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7f9fea97ec40>: Error Domain=IDEDistributionErrorDomain Code=1 "(null)"
error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)

Error Domain=IDEDistributionErrorDomain Code=1 "(null)"

** EXPORT FAILED **

Failed export step

Thanks and Regards,
Ronald

Shai Almog

unread,
Sep 2, 2016, 1:31:24 AM9/2/16
to CodenameOne Discussions, mispro...@gmail.com, mcell...@gmail.com
Hi,
was this certificate generated by the certificate wizard or manually?
Was this build working before the migration to the new xcode version?
Does this work with the iphone_old build targets?
Are you using any cn1libs or native code?
Do you define any ios.* build hints?
Do you target a version that isn't "latest"?

mispro...@gmail.com

unread,
Sep 2, 2016, 2:14:30 AM9/2/16
to CodenameOne Discussions, mispro...@gmail.com, mcell...@gmail.com
Hi,
 
was this certificate generated by the certificate wizard or manually?
Ans: The certificate is generated manually and it is successful before.
 
Was this build working before the migration to the new xcode version?
Ans: Yes
 
Does this work with the iphone_old build targets?
Ans: I tried old build e.g.3.0 which is not successful after migration and show keeping build in cn1 website dashboard
 
Are you using any cn1libs or native code?
Ans: Yes

and
<SystemConfiguration/SystemConfiguration.h>
"Reachability.h"
<AssetsLibrary/ALAsset.h>
<AssetsLibrary/ALAssetRepresentation.h>
<Foundation/NSURL.h>
<UIKit/UIKit.h>
"ALAssetsLibrary+CustomPhotoAlbum.h"
<AddressBook/AddressBook.h>
<sys/utsname.h>
<arpa/inet.h>
<ifaddrs.h>
<netdb.h>
<sys/socket.h>
<CoreFoundation/CoreFoundation.h>
"Reachability.h"

Do you define any ios.* build hints?
ios.add_libs: SystemConfiguration.framework;AssetsLibrary.framework;UIKit.framework;AddressBook.framework;Photos.framework
 
Do you target a version that isn't "latest"?
It is latest.

I'm appreciated if you could give advice in asap!

Thanks and Regards,
Auto Generated Inline Image 1

mispro...@gmail.com

unread,
Sep 2, 2016, 2:17:31 AM9/2/16
to CodenameOne Discussions, mispro...@gmail.com, mcell...@gmail.com
In addition, for the ios.* in build hints



ios.interface_orientation: UIInterfaceOrientationPortrait:UIInterfaceOrientationPortraitUpsideDown:UIInterfaceOrientationLandscapeLeft:UIInterfaceOrientationLandscapeRight
Auto Generated Inline Image 1

km.bl...@gmail.com

unread,
Sep 2, 2016, 11:28:46 AM9/2/16
to CodenameOne Discussions, mispro...@gmail.com, mcell...@gmail.com, bumcdev works
Hello Sai, 

We are also facing this issue since 29th for iOS build. here is the trace - this is still happening Executing (refer to trail below)

was this certificate generated by the certificate wizard or manually?
Certfificate generated manually

Was this build working before the migration to the new xcode version?
Yes, till August 29 th it was working

Are you using any cn1libs or native code?
CLDC11,jar, CodenameOne.jar, CN1JSON.cn1lib

Do you define any ios.* build hints?
ios.newLocalStorage=true, ios.project_type=ios, ios_dysm, ios_

Do you target a version that isn't "latest"?
It is latest.

/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -exportArchive -archivePath MeddoDocBook.xcarchive -exportPath /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build9060618263567619215xxx/result -exportOptionsPlist /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/export8417845246041144099.plist -verbose PROVISIONING_PROFILE=8b33b267-42ff-4ce5-827b-ffeedc20f4a1 CODE_SIGN_IDENTITY=iPhone Distribution: PIONEER PSYCHIATRY SERVICES PTY LTD (Y7ANW82L89) KEYCHAIN=/Users/administrator/Library/Keychains/temp1472827032997.keychain CODE_SIGN_ENTITLEMENTS=/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/Entitlements4610863424684614927.plist 2016-09-02 09:42:56.966 xcodebuild[88734:1341122] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/MeddoDocBook_2016-09-02_09-42-56.963.xcdistributionlogs'. 2016-09-02 09:42:57.003 xcodebuild[88734:1341122] [MT] DeveloperPortal: Using pre-existing current store at URL (file:///Users/administrator/Library/Developer/Xcode/DeveloperPortal%207.3.1.db). 2016-09-02 09:42:57.281 xcodebuild[88734:1341122] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7ffa2c654ae0>: Error Domain=IDEDistributionErrorDomain Code=1 "(null)" error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)  Error Domain=IDEDistributionErrorDomain Code=1 "(null)"  ** EXPORT FAILED **  Executing: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -exportArchive -archivePath MeddoDocBook.xcarchive -exportPath /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build9060618263567619215xxx/result -exportOptionsPlist /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/export8417845246041144099.plist -verbose PROVISIONING_PROFILE=8b33b267-42ff-4ce5-827b-ffeedc20f4a1 CODE_SIGN_IDENTITY=iPhone Distribution: PIONEER PSYCHIATRY SERVICES PTY LTD (Y7ANW82L89) KEYCHAIN=/Users/administrator/Library/Keychains/temp1472827032997.keychain CODE_SIGN_ENTITLEMENTS=/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/Entitlements4610863424684614927.plist 2016-09-02 09:42:57.632 xcodebuild[88735:1341143] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/MeddoDocBook_2016-09-02_09-42-57.632.xcdistributionlogs'. 2016-09-02 09:42:57.659 xcodebuild[88735:1341143] [MT] DeveloperPortal: Using pre-existing current store at URL (file:///Users/administrator/Library/Developer/Xcode/DeveloperPortal%207.3.1.db). 2016-09-02 09:42:57.797 xcodebuild[88735:1341143] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fc8f247a0e0>: Error Domain=IDEDistributionErrorDomain Code=1 "(null)" error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)  Error Domain=IDEDistributionErrorDomain Code=1 "(null)"  ** EXPORT FAILED **  Failed export step

Shai Almog

unread,
Sep 3, 2016, 1:08:41 AM9/3/16
to CodenameOne Discussions, mispro...@gmail.com, mcell...@gmail.com, bumcde...@gmail.com, km.bl...@gmail.com
Hi,
it seems that everyone who ran into this issue has used manual certificate generation.
We looked at this intently and so far it seems that the old servers were more lenient towards invalid/expired certificates (revoked or expired).

Open your P12 file on a Mac and see if it was revoked or expired. If the file is a year old then it expired for sure as Apple certificates expire after a year.

I suggest verifying this now, currently the iphone_old build target is a workaround but we will remove it at some point and you don't want to be stuck.

mispro...@gmail.com

unread,
Sep 3, 2016, 3:47:51 AM9/3/16
to CodenameOne Discussions, mispro...@gmail.com, mcell...@gmail.com, bumcde...@gmail.com, km.bl...@gmail.com
But our p12 just create around a month and it works before your migration. Thanks.

Steve Hannah

unread,
Sep 3, 2016, 4:37:12 AM9/3/16
to codenameone...@googlegroups.com
The old tool chain would build successfully with expired or revoked certificates.  You wouldn't receive a failure until you tried to install on device.

If you build with iphone_old, are you able to install the resulting app on a device (non-jail broken )?

Steve
--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/252fddec-097f-4d00-b5bc-d71cc32d65a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Steve Hannah
Software Developer
Codename One

Shai Almog

unread,
Sep 3, 2016, 10:59:37 PM9/3/16
to CodenameOne Discussions
To clarify Steves point please check that the P12 certificate wasn't revoked since it was issued.

Another observation we made is that everyone who has issues generated their own certificate. This might be related to the Apple WWDR certificate that expired:
https://developer.apple.com/support/certificates/expiration/

That was a big problem a while back and we had to update all the servers/computers with the new cert. It's possible that those P12 files were generated with the old cert and are failing because of that.

The latest apple certificate is here: https://developer.apple.com/certificationauthority/AppleWWDRCA.cer you need to update your Macs system keychain. Then regenerate the certificate/provisioning...

Unfortunately we don't know for sure if this is the reason...
Reply all
Reply to author
Forward
0 new messages