XCode 5 GM linker error: too many compact unwind infos in function anon for architecture i386

10,833

Solution 1

UPDATE: Google released a fix for the Google Analytics library https://code.google.com/p/analytics-issues/issues/detail?id=338

See version v3.01 here: https://developers.google.com/analytics/devguides/collection/ios/resources

FWIW, with the Google Analytics library, the link error only happens when deployment target is set to 7.0. If you drop the deployment target to 6.1 for example linking works without error.

For reference, with respect to Google Ananlytics, I've posted an issue in Google's bug tracker.

Solution 2

Workaround: Build for device.

Not so much of a fix, but try building your app for a device rather than simulator. Might be related to the introduction of 64-bit.

I can archive my app, but when I try to build/run for simulator, it fails at linking with the same error you're receiving.

To be clear, I'm also using cocoapods.

Solution 3

changing " iOS Deployment Target to something less than "iOS 7.0"

inside

"Project" -> Build Settings -> Deployment

worked for me, i guess it has something to do with the configuration used to build the external lib. i was facing the issue with the simulator only, when included Jot Touch SDK

Solution 4

this answer might come a little late, but i had the same issue with a third party framework. For some reason we have added the -all_load flag to the build settings, but when i removed it, we were able to build the project.

So go to:

Project -> Build Settings -> Other linker flags

and remove the -all_load flag.

Hope this helps.

Share:
10,833
dang
Author by

dang

Updated on June 14, 2022

Comments

  • dang
    dang almost 2 years

    We just updated to XCode 5 GM, and a project (iPhone only targeted at iOS 7) that built fine under DP 5 now gives the error:

    ld: in /Users/dan/Documents/Projects/ImageProApp/Pods/SparkInspector/SparkInspector.framework/SparkInspector(ExplorerViewState.o), too many compact unwind infos in function anon for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    

    We are using CocoaPods to include several components, CocoaAsyncSocket, CocoaLumberack, Spark Inspector and Reachability. My guess is that were we to remove Spark Inspector, this error would simply reference another component.

    Can anyone recommend a fix? Tell me what the compiler/linker flags are to use non-compact unwind infos?

    Thanks,

    Dan