Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
360 views
in Technique[技术] by (71.8m points)

iphone - iOS - Linker error after upgrading to Xcode 4.5, possibly Core Plot related

I've just upgraded to Xcode 4.5GM and tidied up some screens in my iPhone project to cope with the extra screen size on iPhone 5. The project is targeting iOS 5.1 and I've just come to build it for my phone and I get this linker error :

file is universal (2 slices) but does not contain a(n) armv7s slice: /Users/JonathanW/Documents/MyXcode/myApp/myApp/CorePlot/libCorePlot-CocoaTouch.a for architecture armv7s

I'm using the Core Plot 1.0 static library in my project and have not had any issues with it until now. Looking around I can see similar errors to do with the build architecture settings but not sure where to go from here. The project works fine in the simulator (both iOS 5.1 and iOS 6). Any ideas?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

By the looks of it you'll need to rebuild the libCorePlot library with Xcode 4.5GM so that there's a ARMV7S build of the library. Seems as if it's trying to use the version you built with the older Xcode.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...