Xcode 7 compatibility

Thanks a lot for the clarification. 

Was wondering what would happen with the new iOS 9 update. 

Have just upgraded to xCode version 7 and things are no longer working well.

Every time I first try a build, I’m told

"Corona Simulator: The Xcode iOS SDK located at “/Applications/Xcode.app/Contents/Developer” is missing the following components:
copypng
codesign_allocate

Please re-install Xcode.

Xcode is required by Corona SDK and needs to be installed to build iOS applications.

Press the “Install Xcode…” button to go to the App Store and get Xcode.  When it is installed, build for iOS again."

I follow the link to the App Store and am given the “Open” option. The first time I did this Xcode initialised.

When I try the build again I get:

Code signing identity: “iPhone Distribution: Freida van Staden (85SEH2L69F)” (***********************)
2015-09-19 08:52:11.608 Corona Simulator[641:10022] Runtime error
    ?:0: attempt to index a nil value
stack traceback:
    [C]: ?
    ?: in function ‘?’
    ?: in function ‘?’
    ?: in function ‘?’
    ?: in function <?:822>
2015-09-19 08:52:11.614 Corona Simulator[641:10022] iOS build failed (5)

HELP!

PS I have redacted the Code signing identity
 

Did you run Xcode by hand after installing it? It has to download more stuff.

Rob

I think so - I’ll do it again to be sure.

I’ve just manually started xCode and it started straightaway - I now realise that clicking the “Open” in the App Store would have run it manually and it did do some stuff but I recall a couple of error messages which from memory happened the last time I did an xCode upgrade and they didn’t seem to matter.

And once again when I tried a fresh build I’m still told that xCode needs to be installed so I’m really going round in circles!

More info:

I have searched for copypng in Xcode.app and found it in

Contents/Developer/usr/bin

and codesign_allocate I found in

Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Managed to find the Xcode install log:

Sep 19 08:19:02 mini.local installd[1104]: PackageKit: Extracting file:///Applications/Xcode.app/Contents/Resources/Packages/MobileDeviceDevelopment.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/0A31F44C-3274-445C-BD4C-550A4A7D1A5C.activeSandbox/Root, uid=0)
Sep 19 08:19:02 mini.local installd[1104]: PackageKit: update_dyld_shared_cache -overlay /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/0A31F44C-3274-445C-BD4C-550A4A7D1A5C.activeSandbox/Root
Sep 19 08:19:27 mini.local installd[1104]: PackageKit: prevent user idle system sleep
Sep 19 08:19:27 mini.local installd[1104]: PackageKit: suspending backupd
Sep 19 08:19:27 mini.local installd[1104]: PackageKit: Executing script “./preinstall” in /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/0A31F44C-3274-445C-BD4C-550A4A7D1A5C.activeSandbox/Scripts/com.apple.pkg.MobileDeviceDevelopment.6lKeS3
Sep 19 08:19:27 mini.local install_monitor[1112]: Temporarily excluding: /Applications, /Developer, /Library, /System, /bin, /private, /sbin, /usr
Sep 19 08:19:28 mini.local peter[1115]: Running Install Scripts . . .
Sep 19 08:19:28 mini.local peter[1117]: Begin script: rpmuxdpre
Sep 19 08:19:28 mini.local installd[1104]: ./preinstall: (kernel) Kext com.apple.nke.rvi not found for unload request.
Sep 19 08:19:28 mini.local installd[1104]: ./preinstall: Failed to unload com.apple.nke.rvi - (libkern/kext) not found.
Sep 19 08:19:28 mini.local peter[1122]: End script: rpmuxdpre
Sep 19 08:19:28 mini.local peter[1123]: 1 Install Scripts run.
Sep 19 08:19:28 mini.local installd[1104]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/0A31F44C-3274-445C-BD4C-550A4A7D1A5C.sandboxTrash for sandbox /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/0A31F44C-3274-445C-BD4C-550A4A7D1A5C.activeSandbox
Sep 19 08:19:28 mini.local installd[1104]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/0A31F44C-3274-445C-BD4C-550A4A7D1A5C.activeSandbox/Root (2 items) to /
Sep 19 08:19:29 mini.local installd[1104]: PackageKit: kextcache -system-caches
Sep 19 08:19:37 mini.local installd[1104]: PackageKit: kextcache -update-volume / -Installer
Sep 19 08:19:39 mini.local installd[1104]: kextcache: SoftRAID.kext has incorrect permissions; omitting.
Sep 19 08:19:39 mini.local installd[1104]: kextcache: PromiseSTEX.kext has incorrect permissions; omitting.
Sep 19 08:19:39 mini.local installd[1104]: kextcache: HighPointRR.kext has incorrect permissions; omitting.
Sep 19 08:19:39 mini.local installd[1104]: kextcache: HighPointIOP.kext has incorrect permissions; omitting.
Sep 19 08:19:39 mini.local installd[1104]: kextcache: CalDigitHDProDrv.kext has incorrect permissions; omitting.
Sep 19 08:19:39 mini.local installd[1104]: kextcache: ATTOExpressSASRAID2.kext has incorrect permissions; omitting.
Sep 19 08:19:39 mini.local installd[1104]: kextcache: ATTOExpressSASHBA2.kext has incorrect permissions; omitting.
Sep 19 08:19:39 mini.local installd[1104]: kextcache: ATTOCelerityFC8.kext has incorrect permissions; omitting.
Sep 19 08:19:39 mini.local installd[1104]: kextcache: ArcMSR.kext has incorrect permissions; omitting.
Sep 19 08:19:39 mini.local installd[1104]: kextcache: ACS6x.kext has incorrect permissions; omitting.
Sep 19 08:19:40 mini.local installd[1104]: kextcache: kext file:///System/Library/Extensions/ZTEUSBMassStorageFilter.kext/ is in hash exception list, allowing to load
Sep 19 08:19:40 mini.local installd[1104]: kextcache: kext file:///System/Library/Extensions/ZTELTEUSBMassStorageFilter.kext/ is in hash exception list, allowing to load
Sep 19 08:19:41 mini.local installd[1104]: kextcache: kext file:///System/Library/Extensions/SierraDIPSupport.kext/ is in hash exception list, allowing to load
Sep 19 08:19:41 mini.local installd[1104]: kextcache: kext file:///System/Library/Extensions/JMicronATA.kext/ is in hash exception list, allowing to load
Sep 19 08:19:47 mini.local installd[1104]: kextcache: kext file:///System/Library/Extensions/HuaweiDataCardDriver.kext/Contents/PlugIns/HuaweiDataCardECMControl.kext/ is in hash exception list, allowing to load
Sep 19 08:19:47 mini.local installd[1104]: kextcache: kext file:///System/Library/Extensions/HuaweiDataCardDriver.kext/Contents/PlugIns/HuaweiDataCardActivateDriver.kext/ is in hash exception list, allowing to load
Sep 19 08:19:48 mini.local installd[1104]: kextcache: kext file:///System/Library/Extensions/HuaweiDataCardDriver.kext/ is in hash exception list, allowing to load
Sep 19 08:19:51 mini.local installd[1104]: kextcache: AppleMobileDevice.kext has invalid signature; omitting.
Sep 19 08:19:54 mini.local installd[1104]: kextcache: AmbrosiaAudioSupport.kext has invalid signature; omitting.
Sep 19 08:20:10 mini.local installd[1104]: PackageKit: Executing script “./postinstall” in /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/0A31F44C-3274-445C-BD4C-550A4A7D1A5C.activeSandbox/Scripts/com.apple.pkg.MobileDeviceDevelopment.6lKeS3
Sep 19 08:20:10 mini.local peter[1141]: Running Install Scripts . . .
Sep 19 08:20:10 mini.local peter[1143]: Begin script: addcert
Sep 19 08:20:10 mini.local installd[1104]: ./postinstall: security: SecKeychainItemImport: The specified item already exists in the keychain.
Sep 19 08:20:11 mini.local peter[1146]: End script: addcert
Sep 19 08:20:11 mini.local peter[1147]: Begin script: removecookies
Sep 19 08:20:11 mini.local peter[1151]: End script: removecookies
Sep 19 08:20:11 mini.local peter[1152]: Begin script: rpmuxdpost
Sep 19 08:20:13 mini.local peter[1164]: End script: rpmuxdpost
Sep 19 08:20:13 mini.local peter[1165]: 3 Install Scripts run.
Sep 19 08:20:13 mini.local installd[1104]: PackageKit: Writing receipt for com.apple.pkg.MobileDeviceDevelopment to /private/var/db/receipts
Sep 19 08:20:13 mini.local install_monitor[1112]: Re-included: /Applications, /Developer, /Library, /System, /bin, /private, /sbin, /usr
Sep 19 08:20:14 mini.local installd[1104]: PackageKit: releasing backupd
Sep 19 08:20:14 mini.local installd[1104]: PackageKit: allow user idle system sleep
Sep 19 08:20:14 mini.local installd[1104]: PackageKit: ----- End install -----
 

I’m not sure how helpful the log will be. I would completely remove Xcode and re-install it fresh!

Rob

Had a feeling you would say that - ok - here I go - slow broadband here so it will be a while befeore I report back!

Well I tried! Somehow the new install ended up on external drive - have no idea how! Copied it to its correct position. On starting there was no evidence of extras downloading.

Before this install I deleted:

Applications/Xcode.app

and

Library/Developer/Xcode/DeveloperPortal\ 7.0.db*

I guess that’s not enough? Feels like I’m back in the Windows world!  Anyway after all this work, there’s no change.

Any more suggestions?

Thank you for your patience … Peter

I give up!

I got rid of Xcode completely according to:

https://www.reddit.com/r/swift/comments/3fimsd/how_to_uninstall_xcode_properly_other_than_just/

did the whole wretched 8G download again and nothing has changed!

What a waste of a whole day!

Have no idea what to do now.

What does xcode-select -p when typed from the command line print out?

/Applications/Xcode.app/Contents/Developer

That’s what it should be.  Have you googled the errors you’re getting?

Of course! I spent all day yesterday searching and trying but I have not discovered anything helpful. I think I’ll try restoring xCode 6 from Time Machine or failing that re-installing it if it’s still available.

You can download 6.4 from the link in my first post. I actually ended up doing that rather than using 7.0, because we needed to submit to iTunes and didn’t want to spend extra time testing xcode 7.

Thank you Alan.

Managed to get Xcode 6.4 installed ok and to finally do a successful build but I had to ignore this message:

"The version of iOS SDK (8.4) that’s installed on this computer does not match the target iOS version (8.3). You may encounter issues building or incompatibilities at runtime.

You should consider updating your version of Xcode or using xcode-select to enable a compatible version."

What should I do about that?

Peter

Update Corona SDK to a daily build 2708 or later. We are up to 2720 and that’s the daily build I would currently recommend.

Rob