MonoTouch application build - xcode

I have managed to install the trial version of MonoTouch as I am interested in buying a license but I want to try the product first. The problem that I am having is this:
I have installed MonoTouch and MonoDevelop
I have downloaded Xcode which has the iphone sdk's bundled in.
When I open monodevelop and create a new iPhone application or project, it creates it and opens it in monodevelop. Awesome. when I try to compile and run in the simulator, I get an error stating "The iphone sdk is not installed."
Now, it could be due to the fact that the xcode I downloaded from the apple developer site is an app file ie no installation is required, you extract the dmg file and then Xcode runs straight from there and you can copy it from the dmg straight to your drive and run it from there. is there any specific place where I should put that file for monotouch to find it? how can I solve this?
Another problem, upon opening the xib file in my project, it does not open interface builder in monodevelop, it opens the files source code. hopefully by solving the xcode issue it will take care of this as well?
Using a Macbook Pro OSX 10.7.3

You're right, the problem is that MonoDevelop can't find Xcode.
The easiest way is to install Xcode from the AppStore. In this case MonoDevelop will detect the location automatically.
You can also tell MonoDevelop where the SDK is in MonoDevelop's preferences (remember to restart MonoDevelop):
Or you can copy Xcode.app into your Applications directory, and MonoDevelop will find it automatically (if you have the latest MonoDevelop version and Xcode 4.3).

Have you tried running XCode and checked that it is installed? Might seem like a silly question, but when you download XCode from appstore you only download the installation program, which you in turn need to run to actually install XCode.

I have solved the problem. I downloaded another version of xcode which physically installed it on the machine now everything works beautifully.

Related

Even after rolling back to Xcode 13.3.1 I can no longer debug apps on my iPhone with iOS 15.6

After my iPhone 13 updated to iOS 15.6, Xcode 13.4.1 no longer was able to debug apps on the device. Many posts and Xcode support recommend that I roll back to Xcode 13.3.1.
So I renamed Xcode to "Xcode 13.4.1", downloaded the xip for 13.3.1 and also confirmed that I am running the previous version, via the About menu.
Yet I still get the following error:
Failed to prepare device for development. This operation can fail if
the version of the OS on the device is incompatible with the installed
version of Xcode. You may also need to restart your mac and device in
order to correctly detect compatibility.
I have cleaned the build folder, I also downloaded the 15.5 image, renamed it to 15.6, and placed it in the DeviceSupport folder. But it nothing has worked.
I don't know if Xcode uses any config files that I need to clean, or anything else I can't think of. Has anyone been through this?
Xcode 13.4 (build 13F100) has a known issue preparing devices running iOS 15.6 beta and is not officially supported. The fix is to wait for a newer build of 13.4.x Xcode.
Anecdotally some have said it works after disconnecting the phone and restarting both the phone and the Mac.
There are two workarounds:
The official workaround from Apple is to install Xcode 13.3.1. You have tried this. The majority of the config files are inside the Xcode directory. You can download AppCleaner and have it show you everything it would delete if you allowed it to uninstall Xcode. For me that list was 11 GB and 39 files. I'd exam those files and possibly make copies of anything outside /Applications/Xcode.app before allowing it to remove.
Navigate to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ and duplicate the 15.5 folder with a new name of 15.6. If this works, it is much safer.

Xcode version in App Store and in Xcode do not match

I am having a strange issue. I need access to Xcode 10 to test my app. So I downloaded and installed the latest version of Xcode from the App Store to my Mac. I have confirmed this in the App Store:
See in the top left in the above image, version 10.1 of Xcode is installed.
But to my frustration when I open Xcode it still is version 9, as shown in this screen shot:
See just below the Xcode logo it says version 9.4.1
What is going on? I tried restarting my computer again but the Xcode version is still 9.4 when i open xcode. Is there somewhere I can choose to use version 10 of Xcode?
You might have possibly installed multiple xCode applications in your system.
Option 1:
Select Finder -> Applications
Check if there are multiple xCode applications.
Option 2:
Go to your project folder.
Right click . xcodeproj or .xcworkspace file -> Open With
This will show all the xCode applications installed in system.

Monotouch 6.0.6 and XCode 4.5

I've been using MonoTouch 6.0.6 and xCode 4.2 for a while and everything was good. Recently one requirement came for which I had to use iOS6 SDK. I downloaded Xcode 4.5 dmg file from app dev centre. When I try to install, its just an app so it doesn't install. I want my Monotouch to use Xcode 4.5, how do I do? I am stuck on this and not able to find the solution.
Thank you!
You should just drag the app from the .DMG into your Applications folder, open it, and then it'll handle the rest. Monotouch will then use Xcode 4.5.
I got it working. Here is what I did -
a. Opening the DMG file, it mounted on a drive and kept on desktop.
b. Click on the XCode on the mounted drive opened XCode, so I copied the XCode.app to application folder
c. In Monotouch, under preferences-> SdK Location, select the Application/Xcode.app as the apple sdk.
Using this, Monotouch picks up the new SDK and start using iOS6 simulator.

XCode 4.5 app file start installer, not the program?

I am trying to get Xcode 4.5 running along side my current XCode version.
I can see alot of posts saying you just drag the .app file from the dmg to a place on your HD, but when I do that and tries to start XCode 4.5 from that file it starts an installer.
From what I have read it should simply start the program right away. Can someone tell me what im doing wrong?
Downloaded the dmg file from iOS Dev Center.
You're doing it fine. The first-launch installer installs a couple things required for the new version (e.g. Libraries for talking to newly-supported hardware), but it won't interfere with the workings of the previous version of Xcode. The same thing happened with Xcode 4.4 and 4.3.

Moving XCode location Breaks Monotouch compiling via MonoDevelop

Having a similar problem as that described in MonoTouch and Xcode 4.3 from the App Store. I moved XCode to a different location and am getting:
The Apple iPhone SDK is not installed.
I've attempted to point MonoDevelop to the new location via "MonoDevelop -> Preferences -> SDK Locations -> Apple SDK", and while the GUI shows success when I browse to XCode.app, the new path isn't saved and I continue to receive errors.
I also tried to move it back to "/Applications/" but again, the setting doesn't take in MonoDevelop although the GUI shows that it successfully found the Apple SDK in the default location.
Note, I am running MonoDevelop version 2.8.8.4 at the moment.
Any suggestions? Should I downgrade to 2.8.6.5 Beta as suggested in MonoTouch and Xcode 4.3 from the App Store?
Answering for the benefit of other users who experience the same issue. #poupou's suggestion above (a comment to my original question) was what worked for me. Simply "Make sure you restart MonoDevelop after changing it's SDK Location."

Resources