Creating Universal Library in Xcode 6

Wilbe

I want to use the libCorePlot-CocoaTouch.a in order to make a graph of data but I kept getting a Mac-o Linker error from Core Plot. Seemed that the error was because I do not have a Universal Library for all of the architectures. From what I have read, is that the Core Plot library needs to be combined with the iphone and simulator libraries. Please correct me as I am very new to Obj-C.

I have tried using the following scripts with target/aggregate but none of them Link 1 Link 2 work with Xcode 6, the issues are the following: Lipo: can't open input file: /Users/Wilbe1/Library/Developer/Xcode/DerivedData/GeoData_Grapher-blnjuxtseitfkfdfkgjpgzskbtwx/Build/Products/Debug-iphoneos/libGeoData Grapher.a (No such file or directory)

Cp: /Users/Wilbe1/Library/Developer/Xcode/DerivedData/GeoData_Grapher-blnjuxtseitfkfdfkgjpgzskbtwx/Build/Products/Debug-iphoneos/include: No such file or directory

Do I need to make a static library first and then a Universal? Could someone please give me a step by step instruction how to resolve this problem.

David 'mArm' Ansermot

You have to build your library for all the different architectures, then merge them with lipo like this :

lipo -create “lib_arm64.a” “lib_x86_64.a” “lib_armv7.a” “lib_armv7s.a” -output “lib.a”

This is how I do it personaly.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章