MonoTouch and Xcode 4.3 from the App Store - xcode

I removed Xcode 4.2 from my system and installed 4.3 from the App Store.
Now when I want to build my app in MonoDevelop it says
The Apple iPhone SDK is not installed.
Using Xcode I can build and run iOS apps just fine.
I tried reinstalling MonoTouch, but it will fail saying XCode is missing.
Any idea how to get this working again?

Xcode 4.3 moved to a different directory, and MonoTouch can't find it anymore.
Yesterday we released a beta update that fixes this - just enable the beta channel in MonoDevelop (Preferences -> Updates) and then update to MonoDevelop (2.8.6.5) and MonoTouch (5.2.5).
Once we've been able to test the changes a bit more, we'll release these packages to the stable channel.

Related

Your Xcode version may be too old for your iOS version

I have updated my phone's OS version to iOS 14 and spent today updating Xcode to version 12, yet when I try to build my Flutter app on my iPhone 11 - iOS 14 through Android Studio, it gives me this error:
Your Xcode version may be too old for your iOS version.
═══════════════════════════════════════════════════════════════════════════════════
2020-09-18 19:14:26.576 ios-deploy[30916:201883] [ !! ] Error 0xe8000022: The service is invalid. AMDeviceSecureStartService(device, CFSTR("com.apple.debugserver"), NULL, &con)
Could not run build/ios/iphoneos/Runner.app on 00008030-00012C200C45802E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
open ios/Runner.xcworkspace
Error launching application on Azheen’s.
This problem is somewhat confusing, I got the same error with Xcode 12.0.1 and iOS 14.2 beta.
This solved for me
Download Device support files of iOS 14.0 from this link.
for iOS 14.2 beta there is a pull request that is not yet merged
Unzip and Paste it in this location. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
ReOpen Xcode.
This is what I did:
Updated Xcode
flutter clean on the terminal.
flutter upgrade on the terminal.
Open Xcode and run the application once.
flutter clean again.
flutter run.
It should work now.
This issued was raised a while back in August in the flutter repo. Currently, the issue has been fixed by the recent flutter update.
Run flutter upgrade to v1.20.4 to get the fix
I ran into this problem recently, most likely it can be caused due to the reason, that your iOS Device is running a higher version than you xcode can support.
Example:
Apple release new iOS for iPhone i.e. 14.2 and you upgrade your device right away, than you ran into this issue, because the xcode may not have the latest version of your device support files, meaning xcode can only suuport iOS 14.1 or lower. Apple sometimes release newer iOS without providing update of xcode device support files.
There is 4 solutions for this:
Keep your iOS Device on the current stable version of xcode
Downgrade your current iOS device
Install device support files manually
Install xcode beta from Apple Developer https://developer.apple.com/download/
It is an annoying issue, Apple should not release any iOS without having the supporting tools released at the same time, or they should run a warning.
Ran into this issue today on Visual Studio. It appeared that my Dart SDK version was too out of date and upgrading it appeared to fix the problem.
I did upgrade my Flutter version first, and then ran into a problem with the vsync property of AnimationController not being recognized, which was solved by upgrading the Dart SDK, so I'm not sure who the real culprit was (or if it was a combination of both).
Instructions on upgrading your Dart SDK: https://dart.dev/get-dart

Uninstall xcode 4.5 (iOS 6)

Just realised I've made a mistake of updating xcode 4.5 (iOS 6) as it causing problems.
How to uninstall xcode 4.5 (iOS 6)? safely? as iOS 6 is beta. I want to go back to xcode 5.1.
iOS6 is no longer beta. So if you installed Xcode 4.5 from the store, you already have the release version of Xcode 4.5. If not, get it from the store.
If you want an older version of Xcode, look here.
There are cases where you may not want to upgrade to the latest version of Xcode.
In my company there are still customers with iPhone 3 that are running iOS 4.2.1 and Xcode 4.5 won't generate code for it. Xcode will generate for 4.3 upwards.
Surprisingly I have an iPhone 3 (A1303) that has been upgraded to iOS 6.0 and Xcode won't generate code for that either.
So, for those that do need to downgrade, you use the link that #leo posted to get hold of the dmg for the version of Xcode you want (4.4.1 probably) and mount it. You then find the existing Xcode (in your application folder) and drag it to the waste bin, then drag the downgraded Xcode to the application folder. You may need to re-install the command line tools, if you use them. Make sure you get the version for your Mac's OS.

iOS Lion - Monotouch and Simulator 4.3

I have the following configuration on Mac OS X 10.7.4:
MonoDevelop 3.0.3.2
Mono 2.10.9
Xcode 4.3.3
Monotouch 5.2.12
I'd like to test my app developed in Monotouch, on iOS 4.3, because on iOS 5.0 works fine. To do that i've tried to install simulator 4.3 in Xcode but when i open Monotouch there is just Simulator 5.0.
I read some information on google and obviously, it advised to install SDK 4.3 but there is no version with this SDK for iOS Lion (the only one on Apple developers website is for Snow Leopard).
I would be interested to know how to install the simulator on my computer.
It's a bit hidden but you can still download of Xcode releases from: https://developer.apple.com/downloads/index.action
Downloading Xcode 4.0 should give you the final SDK for iOS 4.3.
You can install 4.2 and 4.3 (.app) side-to-side on Lion (I have them). This should also work for 4.0 and 4.3 since they (like 4.2) ends up in different directories.
Note that you'll need to tell MonoDevelop to switch Apple SDK location (and restart MD).
The solution that worked for me was to install it through Xcode.
XCode > Preferences > Downloads
You should see installs available here. Click the Install button to get it.

how to fix old xcode installations on mac

I had xcode 3.2.something. and iwth ios sdks 3.0-3.1-....4.1 and 2 iphone simulator sdks.
Now i installed xcode 4.0 with ios sdk 4.3 something like that.
Now all my previous applications cannot be launched nor on device nor on simulator because there's not a single old sdk available.
so next i reinserted the original cds containing macosx and xcode and reinstalled the first xcode i used, but now there's not one ios sdk available at all.
i've been surfing the net for hours now, andi have a couple of questions:
1)have i had to uninstall the xcode 3.2.x before installing xcode 4?
2)how to uninstall applications on mac??? just to make sure that the answer i've found is the correct one.
3)how can erase the traces of all previous xcodes and their sdks in order to install the original one, now that i learned how to install different xcode versions side by side.
4) now what do you think i should to recover? do i have to back up everything and reinstall mac from the beginning?
thank you
So, your questions:
1. Have I got to uninstall XCode 3.2 before installing XCode 4? - No, you don't, but the XCode installer will overwrite your old copy by default. When installing the newer version of XCode and the iOS SDK you must specify a different install directory (eg, create a new folder in the root of your drive called 'Developer 4' for XCode 4.
2. How can I uninstall XCode? - Normally on a mac you would just drag your application to the trash, but it's a little more complicated with XCode. Refer to the instructions at this link: http://pushkararora.com/how-to/how-to-uninstall-xcode-completely/
3. How can I erase all traces of all previous XCodes? - see the answer above for question 2 :)
You can obtain old versions of the SDK from various unofficial online sources if you need to roll back to iOS 3 SDKs. However, it may not be all that much work to move your apps over to the 4.x SDKs.
ok it turned out that at the beginning i was using xcode 3.2.4 with ios sdk 4.1
The xcode that comes with mac osx only targets mac sdk. No iphone support
So i got xcode 3.2.4 setup from a backup (you can find it online) and installed and this should work
And now i have 3.2.5 using sdk 4.2 and targetting all till 3.0
and also xcode 4.0.2

Base SDK missing after a fresh install of XCode 3.2.5 which includes iOS SDK 4.2

I'm new to iPhone development. I just did a fresh install of XCode 3.2.5 with iOS SDK 4.2. No previous XCode or iOS versions have been installed before. However trying to compile some sample project from some books gives "Base SDK Missing". :( What to do? How can I use XCode 3.2.5 for older iPhones like 3GS if it only supports 4.2?
When I go to "Project/Edit Project Settings/Architecture/Base SDK/iOS SDK's" only iOS 4.2 is available to be selected.
Do I need to install older XCode first and then upgrade?
In the build settings, you can support older phones by setting "iOS Deployment Target" to something like 3.0. http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/cross_development/Configuring/configuring.html has more details on the difference between this and the Base SDK setting.
Set Project/Edit Project Settings/Architecture/Base SDK to the Latest OS version, then quit and restart Xcode. You can later set the Deployment target to a lower OS version.
I had the same problem for most of the afternoon. I did everything suggested and nothing worked UNTIL I cleaned and cleaned and saved and rebooted and re-built. Unfortunately that doesn't tell me what actually worked, but it does give everyone "just one more thing" to try.

Resources