Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Xcode 7 compatibility
Started by Alan PlantPot Sep 16 2015 12:08 PM

- - - - -
36 replies to this topic
xcode 7 xcode
[TOPIC CONTROLS]
Page 1 of 2 1 2
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Alan PlantPot

[GLOBAL: userInfoPane.html]
Alan PlantPot
  • Contributor

  • 929 posts
  • Corona SDK

I've just updated my mac for the first time in ages, and was about to upgrade Xcode as well so that I can also update Corona. 

 

However when I opened the App Store I noticed that it said:

Version 7.0

Released Sep 16, 2015

 

I know the beta has been around for a while, but what it is the current state on Corona supporting it? 

We use Enterprise so personally I'm more concerned about that, but I'm sure SDK users will also be curious about it.

 

Afaik I can just download 6.4 from here:

https://developer.apple.com/downloads/

but does anyone know if there is any reason why upgrading from 6.1 this way would cause problems?



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,622 posts
  • Enterprise

The current daily builds include iOS 9. It says beta, but starting with build 2708, it's using the GM seed which you can submit with).  If you want to to use iOS 9's SDK, you need Xcode 7. If you want to use the iOS 8.4 SDK you will need Xcode 6.4. 

 

When we release the next public build, it most likely will only  have iOS 9 and you will need Xcode 7 at that point.

 

Rob



[TOPIC: post.html]
#3

Alan PlantPot

[GLOBAL: userInfoPane.html]
Alan PlantPot
  • Contributor

  • 929 posts
  • Corona SDK

Thanks Rob.

 

Just to be clear, when you say:

 

 

 

When we release the next public build, it most likely will only  have iOS 9 and you will need Xcode 7 at that point.

 

You mean that it will only have the iOS 9 SDK, not that apps built with the next public build will only support devices running iOS 9?



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,622 posts
  • Enterprise

Apple iOS apps run on the SDK they are compiled against and two older versions of iOS. So iOS 9 built apps will run on iOS 8 and iOS 7. If you need to still support iOS 6, you would need to build against iOS 8.

 

Rob



[TOPIC: post.html]
#5

farjadfarabi_czs

[GLOBAL: userInfoPane.html]
farjadfarabi_czs
  • Enthusiast

  • 97 posts
  • Corona SDK

Thanks a lot for the clarification. 

 

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



[TOPIC: post.html]
#6

prh

[GLOBAL: userInfoPane.html]
prh
  • Enthusiast

  • 36 posts
  • Corona SDK

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
 



[TOPIC: post.html]
#7

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,622 posts
  • Enterprise

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

 

Rob



[TOPIC: post.html]
#8

prh

[GLOBAL: userInfoPane.html]
prh
  • Enthusiast

  • 36 posts
  • Corona SDK

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



[TOPIC: post.html]
#9

prh

[GLOBAL: userInfoPane.html]
prh
  • Enthusiast

  • 36 posts
  • Corona SDK

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!



[TOPIC: post.html]
#10

prh

[GLOBAL: userInfoPane.html]
prh
  • Enthusiast

  • 36 posts
  • Corona SDK

More info:

 

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

 

Contents/Developer/usr/bin



[TOPIC: post.html]
#11

prh

[GLOBAL: userInfoPane.html]
prh
  • Enthusiast

  • 36 posts
  • Corona SDK

and codesign_allocate I found in

 

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



[TOPIC: post.html]
#12

prh

[GLOBAL: userInfoPane.html]
prh
  • Enthusiast

  • 36 posts
  • Corona SDK

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 -----
 



[TOPIC: post.html]
#13

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,622 posts
  • Enterprise

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

 

Rob



[TOPIC: post.html]
#14

prh

[GLOBAL: userInfoPane.html]
prh
  • Enthusiast

  • 36 posts
  • Corona SDK

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



[TOPIC: post.html]
#15

prh

[GLOBAL: userInfoPane.html]
prh
  • Enthusiast

  • 36 posts
  • Corona SDK

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



[TOPIC: post.html]
#16

prh

[GLOBAL: userInfoPane.html]
prh
  • Enthusiast

  • 36 posts
  • Corona SDK

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.



[TOPIC: post.html]
#17

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,622 posts
  • Enterprise

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



[TOPIC: post.html]
#18

prh

[GLOBAL: userInfoPane.html]
prh
  • Enthusiast

  • 36 posts
  • Corona SDK

/Applications/Xcode.app/Contents/Developer



[TOPIC: post.html]
#19

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,622 posts
  • Enterprise

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



[TOPIC: post.html]
#20

prh

[GLOBAL: userInfoPane.html]
prh
  • Enthusiast

  • 36 posts
  • Corona SDK

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.



[TOPIC: post.html]
#21

Alan PlantPot

[GLOBAL: userInfoPane.html]
Alan PlantPot
  • Contributor

  • 929 posts
  • Corona SDK

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.

[TOPIC: post.html]
#22

prh

[GLOBAL: userInfoPane.html]
prh
  • Enthusiast

  • 36 posts
  • Corona SDK

Thank you Alan.



[TOPIC: post.html]
#23

prh

[GLOBAL: userInfoPane.html]
prh
  • Enthusiast

  • 36 posts
  • Corona SDK

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



[TOPIC: post.html]
#24

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,622 posts
  • Enterprise

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



[TOPIC: post.html]
#25

prh

[GLOBAL: userInfoPane.html]
prh
  • Enthusiast

  • 36 posts
  • Corona SDK

Have installed 2720 - using it to build produces the same error message.




[topic_controls]
Page 1 of 2 1 2
 
[/topic_controls]