Linker error in iPhone5 for Spotify - iphone

I am implementing Spotify in my iPhone app. In iPhone4 and 4S, it builds and runs fine. But when I connected iPhone5 device and builds, it shows linker error. After disconnecting the device, the build is again success. What may be the reason. Please help me.

In your application's Build Settings, find the "Valid Architectures" setting and remove armv7s from the list. libspotify doesn't include an armv7s architecture yet, but the plain armv7 build will work perfectly fine on the iPhone 5.

Related

(null): iPad: application executable contains unsupported architecture(s): armv7s (-19031)

When I build my iphone app and my ipad app for archiving, I get this message: (But with iPhone instead of iPad in the iPhone app ofc)
(null): iPad: application executable contains unsupported architecture(s): armv7s (-19031)
I didn't get this error before! I didn't get it for my free versions of my app (which is almost the same code) I think it has something to do with iPhone 5? I want it to work with iPhone 5 so I don't want to remove it armv7s
/A noob
This warning is perfectly normal when you use an armv7 device to archive your application.
Think about it, you make an archive that includes the armv7s architecture (which is what we want) and the warning tells you that your armv7 device does not support that architecture (which totally makes sense).
To prove that even further, just hook up an iPhone 5 and try archiving and you will see that the warning will go away.
You have to wait until all custom libs in your project will update. Check it, some of popular libs have updated yet.
Until that remove armv7s:
Project -> Build Settings -> Archetecures
I had a similar problem on the XCode 4.6.3.
I get message:
iPhone/iPod: application executable contains unsupported architecture(s): i386
it turned out that if before the Build, run an application on the simulator, the application is going to the architecture i386 (for Mac), ignoring the Project Settings. Before Build need choose iOS Device as target.

Cannot deploy to device, no error message

I am trying to test my app on an ipod (4.2.1) using xcode 4. All worked well in xcode 3. The problem I have right now is when I select my device and click Run, I see "Finish running myapp on myipod", but the app is not installed in the ipod like it used to be. I have spent hours trying to figure out why. I have read many posts and check the provision is install and my device is listed. Still no go. iOS Deployment Target in the Build Settings is set to iOS 4.2. Can anyone help? Thanks.
Your iPod touch seems to have armv6 CPU. You need to
add armv6 to Architectures in Build Settings, and
remove armv7 from Required device capabilities in Info.plist file.

Mac Xcode build failure issue when deploying application physical iPad device

I am using Xcode 4 version, and I have deployed SUP sample project developed for iOS platform in Xcode.
All the configurations I had done for running the application. The project was successfully built and run in iPhone & iPad simulators.
When I am trying to build the same with physical iPad registered, I am getting the following error.
[BEROR]No architectures to compile for
(ONLY_ACTIVE_ARCH=YES, active arch=armv7, VALID_ARCHS=armv6).
In the valid architecures menu i had added armv6 and armv7 also.
And at that time also am getting a number of errors saying
Apple Mach-O Linker Error
Select your project icon, go to build settings, in the architecture option, for you valid configuration (debug/release), click the '+' button, and add "armv6". Initially it has only armv7. Refer screen shot:

Error when submitting app to iTunes: "Application executable is missing a required architecture"

please i need some help.
I got this message in Organiser when trying to submit my app to iTunes connect: "iPhone/iPod Touch; application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv6 ". There is no problem when building for on a iPhone or simulator.
I use xcode 4
Thank for any help:
Check the project build settings "Architectures". You're likely building with "Optimized armv7" instead of "Standard armv6, armv7". Your iPhone (3GS or 4) can handle armv7 but I think some of the older devices you may be targeting once you get to iTunes (iPhone 2G/3G, iPod 1G/2G) can't and require armv6.

Xcode vs. static library vs. armv6

I have a home-rolled static library to which I link my iPhone app. Works great in Debug mode for Simulator, armv7 (iPhone 4), and even in my unit test app in OS X (GHUnit). However, when I try to run debug my app on my iPhone 3G with iOS 3.0, no dice. The app dies in runtime when it tries to access my library classes.
Both the app & library have
Architectures: Standard (armv6 armv7)
Valid Architectures: armv6 armv7 i386
I'm linking with "-ObjC -all_load", and I've seen some indications that -all_load can cause problems with fat binaries. Yet the armv7 version is working fine. Anybody know what's going on here? Is there a magic build incantation I'm missing?
This is quite similar to Static library dependency compiles in simulator on Xcode 3.2.3, fails on device. The halfway answer is that -all_load is causing the problem when targeting more than one architecture. The jury is still out on the definitive solution.