adsense728x90


swift static library a file Makefile로 추가하기 iOS




error: /Applications/Xcode6-Beta2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `X' in: -Xlinker

Usage: /Applications/Xcode6-Beta2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]

Usage: /Applications/Xcode6-Beta2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]



From the xcode 6 beta 2 release notes:

It is not possible to build static libraries which contain Swift code in this release


이미 다른 사람들도 고생하고 있나 보다.


To test the waters, PromiseKit is available as a Swift variant. If you want to use it in your app then drag and drop swift/PromiseKit.xcodeproj into your project.



pod 'Dollar', '~> 0.2'
로 하라는데, 참조가 안된다.


  • Include the Dollar framework by dragging it into your project and import the library in your code using import Dollar OR
  • Include the Cent framework by dragging it into your project and import the library in your code using import Cent

Currently there are issues loading the library using pod 'Dollar', '~> 0.2' which is pending changes from Cocoapods.


apple 개발자가 공개한 방법은 별도 Makefile을 만들기


Makefile target을 xcode에 추가하는 것도 가능했다.


mac os x target을 만들고, ios target에 dependent하게 설정해도 잘 작동하네.

성공했지만, swiftmodule, swiftdoc 파일을 열어볼 수 없다는 것이 아쉽다.
xcode 6 beta 2에서도 열어 볼 수 없다.
자동완성 같은 건 된다.






덧글

댓글 입력 영역