I have a project that I have been using to learn Xcode/swift/IOS programming. For some time I have testing it in the simulators as well as on my iPhone 5. Now, all of a sudden it is not possible to install on my iPhone. The reaches "Copying standard swift libraries" and then: "Build canceled". No further information whatsoever. Still runs fine in the simulator. I am using Xcode 7.3/swift 2.2 and IOS 9.3. Also using the Xcode 7 free ad-hoc provisioning.
I was able to resolve the issue by disconnecting the iOS device that was attached during the archiving.
Related
After restarting devices, cleaning projects, deleting and rebuilding, updating iOS on target device, updating Xcode on Apple MacBook Pro with M2 chip, and trying commands found online (Apple, GitHub, Stack Overflow), I am still getting the errors below when attempting to build to my iPhone using Xcode:
I also have this error in Unity:
I just updated my iOS to 16.3, and now realize that in Xcode > Build Settings > Deployment > iOS Deployment Target, the max value is iOS 16.2, which could now be causing an issue, but I was getting the same error even before the update and with the target mistakenly set to iOS 11. Edit: I tried my wife's phone with 16.2 and the target set accordingly, and am getting the same errors.
My macOS is on Ventura 13.1 and Xcode is at Version 14.2 (14C18).
I should also note that building to the simulator does not work either, and I read from a Unity rep. on GitHub that this is not supported.
This is for an app I initially built with Godot, but for the life of me couldn't get to build with Xcode after Google AdMob was integrated, and so I went as far as purchasing this new computer to see if a fresh start would help with the latest model, not realizing the issues some face with the M1/M2 chips. Alas, I still faced issues and so decided to rebuild the entire app in Unity, and now I am still facing build issues. So that is my way of saying I really appreciate anyone's insight into this issue. TYIA.
I am having an issue with debugging my iOS application. When I try and run it on iOS9 it comes back with the following log:
Connected to: iPhone 5 warning MT1003: Could not kill the
application 'com.<....>'. You may have to kill the
application manually.
warning MT1108: Could not find developer tools
for this 9.0 (13A344) device. Please ensure you are using a compatible
Xcode version and then connect this device to Xcode to install the
development support files.
error MT1007: Failed to launch the
application 'com.<....>' on the device
'iPhone 5': Look for earlier warnings returned: 0x454. You can still
launch the application manually by tapping on it.
I believe this is related to few other things online:
https://forums.xamarin.com/discussion/15886/getting-compile-time-error-mt1007
Warning MT1108 after ios update
Xcode 7 with iOS 9 device Error: device unavailable (Could not find a developer disk image) ?
My guess to solving this would have been to simply download Xcode 7 ( I am running Xcode 6.4 at the moment). However I am slightly hesitant because Xamarin's website suggests differently?
To ensure your existing Xamarin.iOS apps run smoothly on iOS 9,
download the latest Xamarin.iOS release (8.10.3.2) from our Stable
channel (or if you have the previously released 8.10.1.74 that will
also work) (release info) then re-build and re-deploy your apps using
Xcode 6 on OS X Yosemite.
This will allow your existing apps to run in iOS 9 previews, and be
ready for the public release of iOS 9.
Obviously, my app does install and normally on the iOS9 device. However I can't debug which makes development not ideal...
I have the latest Xamarin updates and I am running on OSX 10.10.4
All help would be greatly appreciated.
If you want to just simply rebuild your app so it runs on iOS 9 (but build against iOS 8 SDK) then you can ignore the warning and tap the app to launch it and connect the debugger and continue from there (as it mentions).
If you're looking to use the new iOS 9 APIs in your application, then you'll need to get Xcode 7 installed.
I have Xcode 6 installed but realise that I am only able to develop for iOS8. I am aware that this beta development kit is meant for the development of the iOS 8 beta release but I am in a position where I don't have the time yet to develop for it but wish to take advantage of some of Xcode's new features while I am developing for my current iOS 7 apps.
What can I do to get the iOS 7 SDK installed on xcode 6?
Seems like if you symlink the relevant SDK from a previous installation of Xcode to the Xcode 6 Beta directory, Xcode 6 will be able to use it. Assuming you still have Xcode 5.1.1 on your machine, try the following in terminal:
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
This should link the iOS 7 SDK for iPhone (not sim), allowing you to select iOS 7 as the Base SDK in Xcode 6 Beta. If you want to do this for the simulator, replace iPhoneOS.platform with iPhoneSimulator.platform.
NOTE: Just because you have the iOS 7 SDK now doesn't mean it'll build. I'm personally having trouble with the fact that Xcode 6 Beta is using the Apple LLVM 6.0 compiler, which apparently isn't compatible with some of the stuff I'm trying to build.
ref: https://stackoverflow.com/a/11424966/2383003
Just posting so that someone might find it useful: I wanted to debug my app in iPhone running iOS 7.1, in XCode 6.0.1. The previous iOS version was not being listed in the settings page, to choose as base SDK/deployment target. (I'm using OS X 10.10 Yosemite). I installed both XCode 6.0.1 and Xcode 5.0.1 and copied
/Application/XCode501.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk
to
/Application/XCode601.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
Now I'm able to run iOS 7 apps from XCode 6.0.1.
I changed the deployment target just fine and installed on my iOS7 iPhone 4s all the same. You can do all your development this way and then use 5.1.1 to make your relevant builds. I wouldn't advice to build apps for production in this beta environment even if you could.
Just repeating Christian's comment (on Ziewvater's answer) so it's more prominent:
What's strange is the fact that after adding the symbolic link to my Xcode folder, I see my device twice with the exact name and with some infos (iOS build number, model, device identifier) in the target selector in the upper left corner of Xcode. Depending on which of the both entries I chose, my app works fine or not, no matter which BASE SDK I chose. ??! Anybody experiencing the same?
This is exactly my experience also! Me and my team were tearing our hair out trying to understand why some builds seemed to be working and others were not.
It looks like Apple must be ignoring the base SDK (or target... or something) when you pick the wrong device from the list.
in Xcode 6.1.1 (Window -> Preferences - Downloads) you can install iOS 7.1 simulator. unfortunately it doesn't install iOS 7.1 SKD. if you set deployment target to 7.1 all builds without any trouble. be worry!!!! it is up to you to check the compatibility with 7.1 (SDK is still 8.1). so or so, all runtime trouble should be seen in simulator. i use this approach to build for my iPhone 4 in swift, where iOS 7.1.2 is the last available. (simply don't use any classes available only for newer devices :-))
I have been frustrated that I have had to use the very buggy XCode 4.5 to build to my device after having upgraded to iOS 6 .
Unfortunately, this version of Xcode for some reason does not allow my app to push or pop view controllers... an issue that completely goes away when I switch back to XCode 4.3.2.
I wanted to be able to use XCode 4.3.2 to build to my iOS 6 device, but this is officially not supported in 4.3.2 because it does not support anything greater than 5.x.
Is there a workaround or fix for this?
Here is a fix for the issue:
1) When you install the latest developer release of XCode, leave the previous version on your computer
2) Make sure the previous version of XCode is quit and then open the developer release version and open the Organizer window
3) Open the old version of XCode and open the Organizer window
4) Click back on the old version of XCode and your device should now show under the run scheme drop-down menu. You should now be able to build and run on your "unsupported" device.
NOTE: This worked for me with XCode 4.3.2 and XCode 4.5 building on iOS 6 for the iPhone 4S. It may or may not work on future versions of XCode or iOS.
I hardly ever get out of Xcode. I was receiving this error "unsupported device (null)" and I tried clean, switching USB ports, switching devices to no avail.
I exited and reentered Xcode without even unplugging my device and it fixed the problem. When the "unsupported device" is given, I noticed that no icon (like a little iPhone) next to my device name was displayed. After I restarted Xcode, I saw the icon and knew my problem was resolved.
I have xCode 4.2, and I've done all the steps about the $99 ios dev program.
Now I need to test my project on my device, which is an iPhone4 in 4.2.1, but I failed to run the app on the device, where the xcode says Xcode cannot run using the selected device.
But in the Organizer my device seems well, because there is a green bulb nearby, like it is in the picture:
Does anyone know the solution to this problem? Should I find something like 4.2.1 sdk to add to my Xcode?
Thanks a lot for your answering!
Download latest version of the SDK, the one supporting iOS 5.0.1. Use the latest SDK as the base SDK. This is not necessarily the oldest version of iOS your app will support.
If you'd like to support/test on devices running iOS 4.2, just go to project build settings and set "iOS Deployment Target" to 4.2.