Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 754
dang Avatar asked Sep 11 '13 02:09

dang


2 Answers

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.

like image 113
Mike Vosseller Avatar answered Sep 21 '22 08:09

Mike Vosseller


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.

like image 25
ray Avatar answered Sep 18 '22 08:09

ray