标签:
这里注意Copy items if needed需要勾选
注意这里的Copy only when installing不勾选(勾选上之后你想要暴露出来的头文件所属的文件夹就会隐藏)
点击TARGEtS -> Build Phases ->Link Binary With Libraries(0 items) -> 点’+’添加SDK中引用到得框架
现在用到的框架
Foundation.framework
UIKit.framework
CoreGraphics.framework
AdSupport.framework
SafariServices.framework
CoreSpotlight.framework
lipo -info libLinkedME_SDK_1.0.a
lipo -create /Users/LinkedME09/Library/Developer/Xcode/DerivedData/LinkedME_SDK_1.0-dnlxbjyrawzmxpfoiojqhgfieuyc/Build/Products/Debug-iphoneos/libLinkedME_SDK_1.0.a /Users/LinkedME09/Library/Developer/Xcode/DerivedData/LinkedME_SDK_1.0-dnlxbjyrawzmxpfoiojqhgfieuyc/Build/Products/Debug-iphonesimulator/libLinkedME_SDK_1.0.a -output /Users/LinkedME09/Desktop/LinkedME_SDK_1.0.a
Foundation.framework
UIKit.framework
CoreGraphics.framework
AdSupport.framework
SafariServices.framework
CoreSpotlight.framework
<key>linkedme_key</key>
<dict>
<key>live</key>
<string>46ed6c4bbdbb5c59ed0dd835f7c8868a</string>
<key>test</key>
<string>46ed6c4bbdbb5c59ed0dd835f7c8868a</string>
</dict>
查看.a命令
lipo -info libLinkedME_SDK_1.0.a
*模拟器的.a的输出信息
input file libLinkedME_SDK_1.0.a is not a fat file
Non-fat file: libLinkedME_SDK_1.0.a is architecture: i386
*真机.a信息
input file libLinkedME_SDK_1.0.a is not a fat file
Non-fat file: libLinkedME_SDK_1.0.a is architecture: arm64
注意i386和arm64的区别 [arm指令集区别](http://www.cocoachina.com/ios/20140915/9620.html)
lipo -create /Users/LinkedME09/Library/Developer/Xcode/DerivedData/LinkedME_SDK_1.0-dnlxbjyrawzmxpfoiojqhgfieuyc/Build/Products/Debug-iphoneos/libLinkedME_SDK_1.0.a /Users/LinkedME09/Library/Developer/Xcode/DerivedData/LinkedME_SDK_1.0-dnlxbjyrawzmxpfoiojqhgfieuyc/Build/Products/Debug-iphonesimulator/libLinkedME_SDK_1.0.a -output /Users/LinkedME09/Desktop/LinkedME_SDK_1.0.a
标签:
原文地址:http://blog.csdn.net/birkhoff_han/article/details/51363430