I had upgraded my OS into Snow Leopard, and I'm using Xcode 3.2 with iPhone SDK 3.0 for Snow Leopard.
I had cleaned up the existing Developer Tools, uninstall, and I deleted the /Developer directory, and I reinstall.
But, the problem is, Interface Builder is showing 3 pop up alerts with this message:
Assertion Message: Interface Builder encountered an error communicating with the iPhone Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
IBUIViewImageRequester failed to rasterize a UILabel, UIButton, UITextField, and UISegmentedControl.
Exception name: NSInvalidSendPortException
Exception reason: [NSMachPort sendBeforeDate:] destination port invalid
Exception backtrace:
(null)
Exception info:(null)
Some people had experienced this, and some people were able to resolve it by copying the right IBCocoaTouchPlugin.ibplugin from those not experiencing problems.
So if anybody could share it, that would be great.
I could click continue to proceed, but it's an annoying problem.
Update:
It's caused by IB that's linking to the wrong libstdc++ in /usr/local/lib. The IB should link to libstdc++ in /usr/lib/
Just delete or move the interfering libs.
It's caused by IB that's linking to the wrong libstdc++ in /usr/local/lib.
The IB should link to libstdc++ in /usr/lib/
Just delete or move the interfering libs.
I had the same problem. I moved the /usr/local to another place, and the problem was solved.
Update: I ran into a very similar problem today. The solution was to delete my old /Developer folder I used with Xcode prior to 4.0.
Related
I created a tabbed application with xCode 5.01, recently downloaded from Apple, and put nothing else in it. It runs fine on the simulator, but when I try to run it on my iPhone 4S, which has OS6 on it, the build fails with these errors:
UIKit/UIKit.h is not found.
The Prefix.pch file is not found.
I looked everywhere and changed the deployment target to 6.0, but it doesn't solve the issue. What's going on?
EDIT: also, following an advice, I deleted the UIKit framework, but when I tried to re-add it (as per the advice) it turns out it's not there.
EDIT 2: Reinstalling xCode solved the issue. Go figure.
Reinstall XCode 5, it is still quite buggy, also when renaming folders, this can cause corrupt data structure inside the project file.
I added Social.framework in my application in the same way i use to add the other frame works. I have downloaded xcode 4.5 and iOS 6 . but my application crashes with follwing error only on device. It works fine on simulator.
dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
Referenced from: /var/mobile/Applications/FC88291D-2052-45D6-A7BB-65CE340F07BF/Uploading Image.app/Uploading Image
Reason: image not found
I was getting this exact error. My app currently has a deployment target of 5.1. I wanted to add Facebook sharing. I found this old post, Conditionally including a library for different iOS SDK versions?. All I did was set "Social.framework" to 'optional' and it did the trick, then my app would run on ios 5.1 and ios 6.0. Of course you need to do checks at runtime for what OS the device is running otherwise you could run into a crash if you try to access social.framework in ios 5.1 or earlier. Hope that helps!
In Xcode go to targets, Go to build phase and search for Social frame work you will find that under "Link Binary with Libraries" section. There select social frame work and see there is an option on right hand side required/optional in that just change required to optional. Now you are able to run on all ios devices without any crashes.
I am trying to test an app on my iOS 4.2.1 device using XCode 4.2 and the latest iOS SDK. The application does not have any functionality that is specific to iOS 5.0. When I run on my devide it says "Build successful" and then "Finished running app on device", but nothing is installed on my device and the application never starts. While searching here, I've found several possible solutions, none of which have worked. Here's what I've tried.
Resintalling all certificates and provisioning profiles
Setting the deployment target to the same iOS version as my device (without this, testing on device was not even available).
Set the "Debug" value on the Code Signing section of Build Phases to my developer certificate.
Someone suggested to set "accelerometer" to YES in "Required device capabilities", only I can't find such a section anywhere in my .plist file or the Build Settings.
ANother suggestion was to set target architecture to armv7 instead of having both armv7 and armv6. I tried with both, armv7 only and armv6 only. None worked.
Deleted /Developer folder and reinstalled XCode.
So far, the only "error" message I could find in the logs is this:
Stream error occurred for : Error Domain=kCFErrorDomainCFNetwork Code=2 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)" UserInfo=0x133cf0 {kCFGetAddrInfoFailureKey=8}
Any help will be greatly appreciated.
Seems stupidly simple, but I've seen this error quite a few times with the exact setup you outlined and unplugging the iPhone and plugging it back in often seemed to be what fixed the issue. Not sure if this is specific to the iPhone 3G/iOS 4.2.1 but this error seems to be cropping up fairly routinely for me with that device connected to Xcode 4.2.
Addition: This questioner had the exact same error, which was due to a network problem because of DNS issues. You may need to check whether your iPod and/or your Mac are properly set up on your network and can access the internet. Moving on to pure speculation, perhaps there is some 'phone home' required to confirm the device is registered on the developer portal as being provisioned for development that is failing due to networking not being set up correctly, resulting in the build not working?
I finally discovered the problem. In Build settings, Architecture, while I had made sure that both armv7 and armv6 were present in the Valid Architectures section, I did not check in the "Architectures" setting, which by default says "$(ARCHS_STANDARD_32_BIT)". Adding armv6 to this section solved the problem. But I still thank u for taking the time to try and help me, it is much appreciated.
I got a application from my teammate, and it is for both iphone and ipad devices (which it is developed under iPhone SDK 3.2).
I have iPhone SDK 3.1.3 installed in my mac book. When i tried to compile the application for iphone simulator i got the following error.
Interface builder is unable to open documents of type iPad XIB.
The above error is for interface builder created for ipad.
My Question is we can't compile the application on iPhone SDK 3.1.3 which the application developed under iPhone SDK 3.2?
Please shed some light of this?
thanks
mindus
Go to your project settings, and delete the line that says Interface Builder Plugin search path or something similar.
the exact line in project.pbxproj is: IBC_PLUGIN_SEARCH_PATHS = "${PROJECT_DIR}/**";
Short answer
Temporarily remove the iPad xib when working with the 3.1.3 SDK. Put them back when you go back to 3.2 and above.
Longer answer
This cropped up for me when compiling against 3.1.3. You can use conditional compiling to get code user newer features to build successfully (see Matt Gallagher's helpful post on conditional compiling).
There may be a smarter way to tell the compiler not to look at the iPad xibs. For testing on the 3.1.3 simulator I simply made a copy all my iPad xibs and then removed them from the xcode project. When going back to my current development set up, you have to put them back. It's a bit of pain, but not that fiddly.
To fix this:
Press Command-1 to go to the project tree
Select your project
The in the right panel select your project, and then click on "Build Settings"
In search field just below the "Build Settings" enter: "Overriding Plug-In"
Now, the only visible setting left should say "Overriding Plug-In and Framework Directory"
Double-click the value and remove all entries using "-" button
Click somewhere else so settings are saved
That should fix it
I got this error message while running my application on simulator.
Dyld Error Message:
Library not loaded: /System/Library/Frameworks/UIKit.framework/UIKit
Referenced from: /Users/thomasschober/Excuse Me/build/Distribution-iphonesimulator/Excuse Me.app/Excuse Me
Reason: image not found
I am not able to understand what is problem.
please help me to solve this problem
Thanks to all
I have the same proble. I have tried all the suggestions above, they wont fix my problem.
I finally found the solution:
Quit Xcode.
Open the BasketballTeams.xcodeproj folder (either in Finder with control click Show Contents of Package, or cd down into the directory with terminal) and delete the files that begin with your username (i.e Felipe.*)
delete the build directory
Open the project again in Xcode and try Build and Run again
Actually I suggest you to reset you simulator and clean all targets as well.
It works for me, you may find the original post here:
http://forums.pragprog.com/forums/83/topics/1095
Try deleting your project 'build' directory and building again, this resolved the problem for me.
I tried re-adding the frameworks mentioned in each error message but this eventually went round in circles with XCode complaining about missing frameworks that I had only just re-added.
I have seen this once before. I cleaned the project, reset the simulator, and restarted XCode - this seemed to fix it. I do not know why the error occurred.
After upgrading to XCode 3.2.3 today my iPad app displayed the following message in the simulator
dyld: Library not loaded:
/System/Library/Frameworks/UIKit.framework/UIKit
I can confirm that deleting the build folder (not just cleaning the target) will correct the issue. Thanks Eddie
I have the same problem. I have tried all the suggestions above, they wont fix my problem. I finally found the solution:
if you are using any external libraries. Then add these libraries in your target.
(Project Target -> General -> choose Embedded Binaries -> then add the request library)
This means you are missing a required framework in Xcode.
Try adding the framework, UIKit.framework, then build again.
I am running XCode 3.2.4 and i saw a similar error.
Cleaning all targets, quit (xcode and simulator) and then start xcode/build again fixed it.