Linking is broken for static library (since Xcode6)
iOS 2015. 7. 30. 16:57I tried to make a static library for my iOS device using Xcode 6.1.
I choose on Xcode a new project with template Cocoa Touch Static Library and named it MyLib. For MyLib target I choose iPhone 6 in the Simulator. After the project was opened, I build MyLib with succeed. But if I look to the Products folder, the libMyLib.a is red and nothing happens, if I want show it with finder.
I found the solution: the library is created under ~/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/libMyLib.a If I switch the target to the my real iPhone 6 it works too and in the Products Folder the libMyLib.a would be black. The library is created under ~/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/libMyLib.a
Thanks, I don't need a answer.
http://stackoverflow.com/questions/27040423/xcode-6-1-static-library-a-for-ios-not-generated
1. 실제 기기로 돌리면 .a 파일 회색으로 변하고 우클릭 show in finder 를 통해 찾아 볼수 있음.
2. 그렇지 않을경우 아래 처럼 해당 경로에서 찾아 볼수 있음.
'iOS' 카테고리의 다른 글
iOS in app purchase (iap) objective-c (0) | 2015.08.13 |
---|---|
swift IAP (0) | 2015.08.11 |
[Swift] Class 1-1 (inheritance, referance copy) (0) | 2015.07.25 |
[Swift] function 1-4 (0) | 2015.07.23 |
[Swift] function 1-3 (0) | 2015.07.23 |