ios build failires (weird): no identity found

416 views
Skip to first unread message

Gareth Murfin

unread,
Aug 29, 2016, 5:14:20 AM8/29/16
to CodenameOne Discussions
Ive been making iOS builds fine today, then I added (since I dont have https set up yet I thought this would help - is that a work around right now ?) 

ios.plistInject = <key>NSAppTransportSecurity</key>     <dict>         <key>NSAllowsArbitraryLoads</key>         <true/>     </dict> 

and somehow now its failing to build with 

  /usr/bin/codesign --force --sign CE8B5C7B76F53BD5AE8BEBA262BD2C3E8BDFAA9D --entitlements /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3305672187286748075xxx/dist/build/Build/Intermediates/ArchiveIntermediates/MyApplication/IntermediateBuildFilesPath/MyApplication.build/Release-iphoneos/MyApplication.build/MyApplication.app.xcent --timestamp=none /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build3305672187286748075xxx/dist/build/Build/Intermediates/ArchiveIntermediates/MyApplication/InstallationBuildProductsLocation/Applications/MyApplication.app
CE8B5C7B76F53BD5AE8BEBA262BD2C3E8BDFAA9D: no identity found
Command /usr/bin/codesign failed with exit code 1

** ARCHIVE FAILED **


The following build commands failed:
	CodeSign build/Build/Intermediates/ArchiveIntermediates/MyApplication/InstallationBuildProductsLocation/Applications/MyApplication.app
(1 failure)
Failed xcodebuild step


If I remove the injection it begins to work again, why is that ?


Im even getting different errors when i send an unchanged build:


PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks build/Build/Intermediates/ArchiveIntermediates/MyApplication/IntermediateBuildFilesPath/MyApplication.build/Release-iphoneos/MyApplication.build/Script-5F49186A9EA6BF61C538BF42.sh
    cd /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6078514305323017734xxx/dist
    /bin/sh -c /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6078514305323017734xxx/dist/build/Build/Intermediates/ArchiveIntermediates/MyApplication/IntermediateBuildFilesPath/MyApplication.build/Release-iphoneos/MyApplication.build/Script-5F49186A9EA6BF61C538BF42.sh
mkdir -p /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6078514305323017734xxx/dist/build/Build/Intermediates/ArchiveIntermediates/MyApplication/BuildProductsPath/Release-iphoneos/MyApplication.app/Frameworks

PhaseScriptExecution [CP]\ Copy\ Pods\ Resources build/Build/Intermediates/ArchiveIntermediates/MyApplication/IntermediateBuildFilesPath/MyApplication.build/Release-iphoneos/MyApplication.build/Script-7D21A34A534A51B49AC11CE2.sh
    cd /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6078514305323017734xxx/dist
    /bin/sh -c /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6078514305323017734xxx/dist/build/Build/Intermediates/ArchiveIntermediates/MyApplication/IntermediateBuildFilesPath/MyApplication.build/Release-iphoneos/MyApplication.build/Script-7D21A34A534A51B49AC11CE2.sh
building file list ... done

sent 29 bytes  received 20 bytes  98.00 bytes/sec
total size is 0  speedup is 0.00
building file list ... done

sent 29 bytes  received 20 bytes  98.00 bytes/sec
total size is 0  speedup is 0.00

Strip build/Build/Intermediates/ArchiveIntermediates/MyApplication/InstallationBuildProductsLocation/Applications/MyApplication.app/MyApplication
    cd /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6078514305323017734xxx/dist
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6078514305323017734xxx/dist/build/Build/Intermediates/ArchiveIntermediates/MyApplication/InstallationBuildProductsLocation/Applications/MyApplication.app/MyApplication

SetOwnerAndGroup administrator:staff build/Build/Intermediates/ArchiveIntermediates/MyApplication/InstallationBuildProductsLocation/Applications/MyApplication.app
    cd /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6078514305323017734xxx/dist
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /usr/sbin/chown -RH administrator:staff /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6078514305323017734xxx/dist/build/Build/Intermediates/ArchiveIntermediates/MyApplication/InstallationBuildProductsLocation/Applications/MyApplication.app

SetMode u+w,go-w,a+rX build/Build/Intermediates/ArchiveIntermediates/MyApplication/InstallationBuildProductsLocation/Applications/MyApplication.app
    cd /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6078514305323017734xxx/dist
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /bin/chmod -RH u+w,go-w,a+rX /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6078514305323017734xxx/dist/build/Build/Intermediates/ArchiveIntermediates/MyApplication/InstallationBuildProductsLocation/Applications/MyApplication.app

ProcessProductPackaging /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/TempProfile.mobileprovision build/Build/Intermediates/ArchiveIntermediates/MyApplication/InstallationBuildProductsLocation/Applications/MyApplication.app/embedded.mobileprovision
    cd /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6078514305323017734xxx/dist
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-productPackagingUtility /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/TempProfile.mobileprovision -o /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build6078514305323017734xxx/dist/build/Build/Intermediates/ArchiveIntermediates/MyApplication/InstallationBuildProductsLocation/Applications/MyApplication.app/embedded.mobileprovision
error: class '(null)' of input object does not respond to either selector writeToFile:options:error: or writeToFile:atomically

** ARCHIVE FAILED **


The following build commands failed:
	ProcessProductPackaging /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/TempProfile.mobileprovision build/Build/Intermediates/ArchiveIntermediates/MyApplication/InstallationBuildProductsLocation/Applications/MyApplication.app/embedded.mobileprovision
(1 failure)
Failed xcodebuild step

Shai Almog

unread,
Aug 30, 2016, 12:13:54 AM8/30/16
to CodenameOne Discussions
This is related to the xcode server migration. We made some fixes, please see if this is still happening.

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

Gareth Murfin

unread,
Aug 30, 2016, 10:07:40 PM8/30/16
to CodenameOne Discussions
thanks Shai, It seemed to work without that injection I needed anyway, but will keep you informed, I am presuming I MUST get my rest api going over httpS to release on itunes these days so I will come back to this.

On 30 August 2016 at 12:13, Shai Almog <shai....@gmail.com> wrote:
This is related to the xcode server migration. We made some fixes, please see if this is still happening.

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

--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/YQoaf3ZWQts/unsubscribe.
To unsubscribe from this group and all its topics, 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/64b027a9-369a-405c-a16b-eca4b3563c3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Gareth Murfin
(Android Freelancer - www.garethmurfin.co.uk)

Reply all
Reply to author
Forward
0 new messages