1
我可以修改框架搜索路徑運行REPL,並在會議上匯入我Alamofire的構建框架搜索路徑:設置爲雨燕腳本
$ swift -F /Users/myuser/Library/Developer/Xcode/DerivedData/myproject-hash/Build/Products/Release/
1> import Alamofire
2>
但是,運行腳本內容
#!/usr/bin/swift -F /Users/myuser/Library/Developer/Xcode/DerivedData/myproject-hash/Build/Products/Release/
import Alamofire
給了我這個錯誤:
./test.swift:3:8
: error: module file's minimum deployment target is OS X v10.10:/Users/myuser/Library/Developer/Xcode/DerivedData/myproject-hash/Build/Products/Release/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule
現在是什麼呢?我在10月12號。