I have a sourcecode which is dependent on a framework which requires Base SDK 7.0. It is very old codebase, so I am using Xcode 6.4 still. Since iOS10 is released recently, found few issues in iOS10. But, couldn't debug or solve them since I couldn't run it in Xcode6. I downloaded Xcode8 and copied SDK in /Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs folder.
I can still see Base SDK iOS7.0 not found and I cannot run it in iOS10 simulator. I get Could not attach to pid : “16541” unable to attach this error when I try running in iPad Air (iOS 10) simulator.
Is there any other way, I can run it on iOS10 simulator? Or only way to work is update the dependent framework to latest SDK? Please advice.
This is very not supported and will not work. Xcode 6 is not compatible with the iOS 10 platforms. Just install Xcode 8.
Related
I was playing around with Xcode 10.2 since the update and when I try to run my app on ANY simulator with iOS version less than 10, the simulator will not start and crash then show the error below:
dyld: Library not loaded: /usr/lib/libauto.dylib Referenced from:
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
Reason: no suitable image found. Did find: /usr/lib/libauto.dylib:
mach-o, but not built for iOS simulator
I tried to create another new project fresh without touching anything, set the deployment target to iOS 9 and run on iOS 9 simulator again, same error was shown.
UPDATE
It seems like this issue only occur when your code base contain swift. Created a new project with objective c code base did not crash the simulator. For swift yes.
SUMMARY
Xcode 10.2 contain swift code unable to run app on simulator with iOS 9
I have done all the cleaning and delete derive data and the issue still persist.
Anyone has any idea ?
FINAL UPDATE
Apple just release Xcode 10.2.1 and it is part of the known issue for simulator, please refer to the link below for the workaround/fix:
https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_1_release_notes
Appreciate #russbishop 's reply, answer accepted
This is a known bug affecting iOS 8.x and 9.x. You can work around it by creating /usr/lib/swift directories in the relevant simulator runtime root.
Downloaded simulator runtimes are located in /Library/Developer/CoreSimulator/Profiles/Runtimes.
For example, to fix the iOS 9.3 simulator:
sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'
Me also got the same problem when run in iOS 9.0 simulator.
From https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_1_release_notes
Simulators for iOS 9.3 and earlier might fail to launch Swift apps with the message: “dyld: Library not loaded: /usr/lib/libauto.dylib”. (49326587)
Workaround: Run the following command in Terminal for the relevant version of iOS:
sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'
For this apple given above solution in that link.
Simply
--> open Terminal
--> Type this line with your required version (In my case i changed into iOS 9.3 to iOS 9.0)
Ex: sudo mkdir '/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift'
--> Enter password
--> Now clean Xcode and run again
This above solution worked for me.
This seems like an iOS Simulator bug. I see this happening on simulators with iOS 12.0 but not on those with 12.4.
Still get this bug with Xcode 10.3. (Skipped over 10.2.)
I ran into this issue when I was doing unit-testing for iOS11 and iOS12.1 on Xcode11.1
The solution was to just run the unit-tests with an iOS13 simulator.
A rather annoying workaround: use Xcode 10.1 to deploy on 9.x simulators for now. It's the only way I've been able to get around this.
None of the above worked for me.
My issue is the same as this but was building an app for macOS.
Running Xcode 11 project target 10.4 whilst my OS is Mojave 10.4.6.
I had to install Xcode 10.3 and use that instead. No problems since.
My guess is its a problem with OS, Xcode version and project target.
Having to use Xcode 10.2.1 I had this issue with another library and ended up having to set always embed swift libraries to YES in build settings since the library in question was in a framework file I had.
Updating to Xcode 10.3 has fixed it for me.
I'm trying to make an app in Swift 1.2. Obviously, Swift 2.0 introduced a lot of changes but before I migrate the whole project over, I would like to be able to test it while being still on 1.2.
But my iPhone is now running iOS9.1 and my Xcode 6.4 doesn't seem to recognize the iPhone for me to test.
Is there any way to run my Swift 1.2 project on my iPhone running iOS9.1? Or do I need to downgrade my iPhone in order to test the 1.2 project?
You can do what you want. But you need to take a few steps. You can get Xcode 6 to recognize your iOS device with iOS 9 but in order to do so, you need to install Xcode 7.1 and run it. Then connect your iOS device. Once Xcode 7.1 has recognized your iOS device with iOS 9 and processed its symbols you can exit Xcode 7.1 and start Xcode 6.4. Open your Swift 1.2 project and you should now be able to test on the iOS 9.1 device.
Before installing Xcode 7.1, rename your Xcode 6.4 application. For example, go to Applications and rename Xcode to Xcode6.4. This will allow Xcode 7.1 to be installed at the same time.
You can register your device with apple account and then create archive .ipa file on your machine and then using http://www.diawi.com/ this link to upload your .ipa file and generated link past in your phone browser and install it.
The iOS 9 update is not supported by Xcode 6.4 for testing purpose. is there a workaround to connect my device to Xcode for testing. If not can I roll back my update to ios 8.4.1( previous update ).
There is a way to deploy to iOS 9 devices with Xcode 6.4. I ended up doing this because I of course had updated my phone right away, but I did not quite want to go to Xcode 7 due to Swift 2 and the lack of support by coacoapods, yet.
Here is what I did:
I downloaded Xcode 7, but did not install it.
Instead I browsed inside the dmg file (Show Package Contents on right-click) to /Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport.
I then copied the folder named 9.0 (13A340) into the same location of my current installation of Xcode 6.4.
Lastly I renamed the existing 8.0 (12A365) folder to just 8.0 - I am not sure if this is necessary.
I am now able to deploy to my phone with iOS9 from Xcode 6.4.
I hope this is helpful to somebody!
The iOS 9 update is not supported by Xcode 6.4
You've hit the nail on the head. iOS 9 is not supported in versions of Xcode earlier than iOS 7. Just update to continue developing.
This worked for me to allow me to test my app that was built against the iOS8 SDK (on XCode 6.4) on a physical iOS9 device.
Rename XCode to Xcode 6.4 in the Applications folder
Install Xcode 7 from the downloaded DMG (don't update from the AppStore)
Open XCode 7 and build a test project (it can be an empty iOS9 app) and run it on your physical iOS9 device
Close Xcode 7 and open XCode 6.4
Build your app against the iOS8 SDK and debug on the physical iOS9 device
It seems like debugging on XCode 7 first updates something on the device and then XCode 6.4 can debug properly.
(This is useful for example, if you don't want to migrate your Swift 1.2 code to 2.0 yet)
I want my application to run on both iOS 6 and iOS 7. I have already upgraded to XCode 5, so to see how my app runs on ios 6, i downloaded ios SDK 6.1 and pasted it in the folder of XCode.app. I changed deployment target to ios SDK 6.1, the base SDK to iOS SDK 6.1. I have installed simulator 6.1 too. But when i run my app, i get several errors..
like
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:53:24: 'UIAccelerometer' is unavailable: not available on OS X
All errors are similar to this one. I don't know why the app is trying to run on mac OS X..
I dont know why you done this all if you only want to run your app on both iOS 6 and 7.
You can see your app running like on iOS 6 device by simply running the app on iOS 6 simulator with XCode 5 and iOS7 Sdk. You dont have to change your deployment target anyways.
Even if you want to see your XIb in iOS6 pattern,you can do that too in XCode 5. If you want to see that, please revert me i will tell you that too. Or if you want something else, please tell us more precisely. Thanks :)
Make sure that you can run other apps on your simulator.
What about your error description - UIAccelerometer is deprecated in iOS 5. I think you try to run old application.
I have xcode 4.5 with 6.1 sdk.
I updated my iphone to iOS 7.0.
opened my project on xcode selected my device and clicked run.
I got the following error:
dyld: could not load inserted library '/Developer/usr/lib/libXcodeDebuggerSupport.dylib' because image not found
image not found error is a new one didn't find anywhere on the internet. It's not the old libXcodeDebuggerSupport.dylib error people got when they updated their devices with earlier versions of Xcode.
I did link or/and copied developer folder from "5.1.1 (9B206)" to "7.0 (11A465)".
But still getting same error.
Does anyone managed to run on iOS 7 device from xCode 4.5? Thanks
I believe that to do device debugging on iPhone with iOS7 you will require to use XCode 5 with iOS7 toolchain. XCode 4.5 is older release and may not have the toolchain for latest iOS7.
For those who have not yet installed Xcode 4.5, the app can still be debugged by Attaching to Process. Try to debug directly from xcode first. By the time debug fails, the app will still have been installed on the device. Then run the app on the device, and Attach to Process from Xcode.