Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.4 - There was an internal API error

Hi I just upgraded to Mountain Lion. I created an empty Single View Application and run it. The first time it runs fine but the next runs will give me the "There was an internal API error" pop-up warning TWICE. It's the same with my other projects. They run okay once but gets this error the next runs. There was no warning or any specific warning message of any kind.

Any idea how to solve this?

Would really appreciate your help.

like image 774
haifacarina Avatar asked Jul 30 '12 05:07

haifacarina


People also ask

How do I fix the Xcode SDK is not available error?

The recommended way to fix this error is to upgrade Xcode to get the needed SDK. If you have multiple versions of Xcode installed or want to use an Xcode in a non-default location, make sure to set the correct Xcode location in your IDE's preferences.

Why can't I launch an iOS app on Xcode 7+?

MT1027: Can't use Xcode 7+ to launch applications on devices with iOS * (Xcode 7 only supports iOS 6+). It is not possible to use Xcode 7+ to launch applications on devices with iOS version below 6.0. Please use an older version of Xcode, or tap on the app manually to launch it.

How do I fix missing header files in Xcode?

A potential, alternative solution is to enable the managed linker. This will remove unused API including, in most cases, the new API where the header files are missing (or incomplete). However this will not work if your project uses API that was introduced in a newer SDK than the one your Xcode provides.

What is the developerdiskimage file in Xcode?

This file is part of Xcode and is usually located relative to the SDK that you are using to build against, in the Xcode.app/Contents/Developer/iPhoneOS.platform/DeviceSupport/VERSION/DeveloperDiskImage.dmg. This error can happen either because you do not have a DeveloperDiskImage.dmg that matches the device that you have connected.


1 Answers

I have it working on iOS6 Beta 4!! This is what I did but other variations may also work:-

  1. Install XCode 4.5 Developer Preview 4
  2. Delete your app from the device
  3. Run your app from Dev Preview 4
  4. Delete your app again (not sure if you have to do this)
  5. Return to XCode 4.4.1
  6. Run your app, stop running, run again!!!

Of course you could continue developing in 4.5, but I prefer to wait.

Installing 4.5 Beta 4 installs updated device support. Once this is done once (possibly on any device) it should work fine. If you use the same device on a different machine you will have to again run it once from 4.5 Beta 4 before using your preferred version of Xcode (You do not need to delete the app from your device this time).

Edit: I am pretty sure that if you make a change to your core data you will need to run from 4.5 for the first time also.

like image 176
Patrick Avatar answered Oct 21 '22 22:10

Patrick