Testing iOS 6 apps on device running iOS7

前端 未结 9 1364
执念已碎
执念已碎 2020-12-30 09:37

I have an iPhone 4s. I receive iOS 7 update in my phone. So the question is: can I run iOS 6 apps from Xcode on my iOS 7 device?

NOTE: I haven\'t go

相关标签:
9条回答
  • 2020-12-30 10:29

    To test iOS 6 apps on iOS device you need to have xcode 4 and xcode 5 on your development machine. Step 1. Run Xcode 5 and run the project on the ios 7 device. Step 2. Run Xcode 4 and now you will find the ios 7 device listed in the scheme menu of xcode 4. Step 3. Run your project and enjoy.

    0 讨论(0)
  • 2020-12-30 10:31

    I was unable to upgrade MacOS from 10.7.5 to 10.8.x and that is why I could not install Xcode5 on my MAC. I downloaded Xcode5 but due to incompatibility it can not be installed.

    I was able to run app using XCode 4.6 in debug mode on an iPhone 4 with iOS 7 (and can't express enough how happy i got after that)

    Steps:

    Use incompatible Xcode5 (copy it from the dmg image to somewhere else, there will be a cross sign in it) and right click on it and Click "show package contents". Go to Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs and copy the iPhoneOS7.0.sdk file in the corresponding folder in Xcode4.6 after showing its package contents. Go to Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport and copy the 7.0 and 7.0.3(11B508) file in the corresponding folder in Xcode4.6 after showing package contents. Now when you open Xcode4.6 your project Base SDK should be 7.0 and if your device is not detected yet, disconnect and reconnect your device so that it starts "getting symbol files from iPhoneXYZ"

    Hope this helps someone.

    One more important thing, in your scheme Debugger should be set to "LLDB"

    0 讨论(0)
  • 2020-12-30 10:37

    Without Xcode 5, all apps you build will be built as iOS 6 apps, and they will run on your device in iOS 6 mode even though your device is running iOS 7. You may want to keep Xcode 4 around for that very purpose, even though Xocde 5 is now in the App Store. I haven't been able to reliably get apps to run as iOS 6 apps when built in Xcode 5.

    0 讨论(0)
提交回复
热议问题