安装pod swift 2

时间:2018-05-19 09:38:56

标签: xcode cocoapods

我想在添加

时在swift 2中使用SwiftyRSA
[!] Invalid `Podfile` file: syntax error, unexpected tFID, expecting keyword_end.

 #  from /Users/sina/Desktop/dev/test/Podfile:7
 #  -------------------------------------------
 #    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
 >  pod 'SwiftyRSA', :git => 'git@github.com:TakeScoop/SwiftyRSA.git', :branch => 'swift-2.3'  use_frameworks!
 #  
 #  -------------------------------------------

到pod错误

0: jdbc:ignite:thin://127.0.0.1/> create table t2(i timestamp primary key, i2 date);
No rows affected (0.099 seconds)
0: jdbc:ignite:thin://127.0.0.1/> INSERT INTO T2 (I, I2) VALUES (timestamp '2017-10-12 21:22:24',timestamp '2017-10-12 21:22:23');
1 row affected (0.009 seconds)
0: jdbc:ignite:thin://127.0.0.1/> select * from t2;
+--------------------------------+--------------------------------+
|               I                |               I2               |
+--------------------------------+--------------------------------+
| 2017-10-12 21:22:23.0          | Fri Nov 11 00:00:00 MSK 2011   |
| 2017-10-12 21:22:24.0          | Thu Oct 12 00:00:00 MSK 2017   |
+--------------------------------+--------------------------------+

gitHub link 谢谢你的帮助

2 个答案:

答案 0 :(得分:0)

您是否直接从GitHub存储库自述文件中复制了该文件?如果是这样,我的猜测是你可能有一些隐藏的字符导致问题,因为你所获得的格式是有效的。尝试将该行复制到文本编辑器中并将其转换为纯文本。

答案 1 :(得分:0)

在podfile的末尾添加结束

platform :ios, '8.3'
    install! 'cocoapods', :integrate_targets => false

    pod 'SwiftLint', '0.17.0'

    target 'SwiftyRSA iOS'
    target 'SwiftyRSA watchOS'
    target 'SwiftyRSA tvOS'
    end