I think I've got a pretty weird one here.
So my app runs on the 4s and 5 simulator, but anything above including 5s puts out the below list of errors.
Never mind. I went to the "Ignoring file /User/..." and deleted them, and that solved the problem.
The errors in that image indicate a link issue due to likely not including certain frameworks in your linker build settings phase. It's also possible that the libraries you are linking against do not contain x86_64 slices (meaning they will work for i386 simulators like the iPhone 4s and iPhone 5 but not x86_64 simulators like the iPhone 5s).
Related
I am using Xcode 4.5 and using the base SDK, iOS6 and am porting my app for iPhone 5. Some of the libraries that I use for my app are still not built for armv7s architecture.
Will removing support for armv7s architecture still work fine for the iPhone 5 screen? Or, will I see black letterboxes? It works fine on the simulator though. Would like to know if anyone got a chance to test this case.
Yes, it should work fine. The deciding factor for whether your code will letterbox is the presence of a Default-568h#2x.png image file, not the architecture that the code is built for.
I've been trying to get my app - built in Xcode 4.2 in Snow Leopard, using ARC, targeting iOS 4.0 and up - to install on a 3G, with no luck. I've tried every solution I can find (like this thorough one here: Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?) and while I've been able to get the app to run on the phone via Xcode, when I share the app and try to install it through iTunes, I keep getting the same error telling me the app was not installed because it is not compatible with this iPhone. My client is using a 3G so this is a pretty big problem.
I've set the architectures / valid architectures to support armv6 as well as armv7 in my build settings and I've deleted the line in info.plist about the required device capabilities with armv7 (I also experimented with adding armv6 instead of deleting the line, which made no difference). I also added the -mno-thumb to Other C Flags in case that was the issue. Even though I know for a fact that it works on a 3G, iTunes refuses to install it. Is there something I'm missing?
Check the OS version for you iPhone 3G. if it is running less than 4.0 you might need to have older sdk. Besides I guess ARC is not supported in earlier versions of iOS.
OK, I'm just dumb - I skipped a step and wasn't actually re-archiving the app, I just kept sharing the same original archive over and over again. Re-archived and now it works fine.
Thanks for all your help, everybody! Next time I ask a question I'll try to rule out my own lack of attention first...:P
I'm working on an app which works fine in an iPhone4. I'm trying to run it in a 2nd generation iPod Touch, but doesn't work, xCode shows a message of "Finished running appName on iPodTouch2" after compilation without errors and warnings.
How can I know the reason it's not working or which framework (AVFoundation, CoreVideo, CoreMedia, AudioToolbox, MediaPlayer, CoreLocation, etc...) is not compatible with it?
This has been answered many times on this site. But to sum-up: Add armv6 to device architectures and remove armv7 from the required device capabilities.
Here is a link to an answer with screenshots of the steps.
I have an app that is working fine on my physical device running 4.2.1 iOS.
On the emulator it works fine in 4.1 and 4.3.. however if I try to run the app on the 4.2 emulator, some interface elements (buttons, segmented controllers etc) do not appear, at all.
I have tried changing the build targets to 4.1 and 4.2 to no avail.
I am beyond confused, obviously if I build with a 4.3 target, I can no longer run on my physical device, but if I have it set to 4.2 or 4.1 I can run it on my device running 4.2.1 no problem. Also if I build with 4.1 as the target I can run it on my 4.1 emulator as well with no problem. The problem seems purely on the 4.2 iOS emulator.
Is this a known issue? Is there something I need to worry about? What, if anything, can I do here?
is the 4.2 emulator just screwed up?
Each of the iphone simulator versions keeps its own copies of the app. try deleting the app's directory from ~/Library/Application\ Support/iPhone\ Simulator/4.2, it is possible that the nib changed, but isn't being copied in for some reason... do a clean before you build.
I am an app developer of 2 years and I can assure you if it works on the other two builds and not 4.2 the emulator is glitching... This happens alot on my apps but they always work on the phone itself. Apple will still approve your app and it will still load on other people's phones no matter what software version they have (for 4.0 +)
Don't sweat it ;)
I'm fixing my app to be a universal binary. Testing on the simulator seems to default to the iPad. For small corrections like checking orientations and small UI updates, the only way I can find to get the iPhone version is to plug in my iPhone and build and run on device.
Loading the debugger takes valuable time, when running on simulator is so much faster for this kind of work. Can I set the simulator to default to iPhone for this? Setting it to 3.1.3 doesn't work because of the 3.2 code I have in the binary for the iPad.
EDIT:
The Hardware -> Device, and ->Version menu choices in the simulator quits my app. When I relaunch, it goes back to the iPad. The app is not installed in the simulator
If you don't have the latest xcode, get it.
Set the project info to build for 3.2, but in the build drop down pick iPhone Simulator 4.0 and it will open in the iPhone simulator instead of the iPad simulator.
That is the dilemma: if you want to use OS 4 on the iPhone, you have to use iPhone SDK 4, which comes with XCode 3.2.3.
Previously I used iphone_sdk_3.1.3_with_xcode_3.2.1__snow_leopard__10m2003a, where the simulator was fine, but now after I update the iPhone to OS 4 (which is by iTunes), I cannot use the SDK 3.1.3 any more, and the simulator 3.2 which comes with SDK 4 actually does not work for iPhone at all!
Even when you specify the "iPhone OS Deployment Target" to "OS 3.1.3", and an iPhone-frame shows up in the iPad simulator, many functions are not responding at all.
Does Apple have an official answer to this dilemma?
I finally solved this problem myself.
First, install new version of xCode, which is xCode 4.
Then set project scheme to iphone simulator and run app in xCode several times.
And re-install xCode 3 and the problem will be gone away!