【转】http://www.cnblogs.com/richard-youth/p/5477314.html
今天浏览博文的时候,“蘑菇街开源的即时通讯框架,包括iOS、Android、Mac、Windows客户端和后台
今天浏览博文的时候,“蘑菇街开源的即时通讯框架,包括iOS、Android、Mac、Windows客户端和后台
Github源码下载地址:
https://github.com/mogujie/TeamTalk
”这段话吸引了我,我就git clone
https://github.com/mogujie/TeamTalk.git
到本地。一运行,没想到出现了很多问题。没办法,只能一个一个的解决,为了总结一下解决的思路以及过程,所以我写下了这片文章。
下面就详细介绍一下:
1. error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
![Script-817CB3AD1B3BC68D0004AFEA.sh: <wbr>line <wbr>2: <wbr>./Fabric.framework/run: <wbr>No <wbr>](https://i-blog.csdnimg.cn/blog_migrate/a4c26d1e5885305701be709a3d33442f.gif)
解决方法:
终端:pod install
![Script-817CB3AD1B3BC68D0004AFEA.sh: <wbr>line <wbr>2: <wbr>./Fabric.framework/run: <wbr>No <wbr>](https://i-blog.csdnimg.cn/blog_migrate/a4c26d1e5885305701be709a3d33442f.gif)
解决方法:最后发现库缺失,
终端命令:pod search fabric
-> Fabric (1.6.7)
Fabric by Twitter, Inc.
pod 'Fabric', '~> 1.6.7'
- Homepage:
https://fabric.io
- Source:
https://kit-downloads.fabric.io/cocoapods/fabric/1.6.7/fabric.zip
- Versions: 1.6.7, 1.6.6, 1.6.5, 1.6.4, 1.6.3, 1.6.2, 1.6.1, 1.6.0, 1.5.5,
终端命令:pod search crashlytics
-> Crashlytics (3.7.0)
Best and lightest-weight crash reporting for mobile, desktop and tvOS.
pod 'Crashlytics', '~> 3.7.0'
- Homepage:
https://get.fabric.io/crashlytics
- Source:
https://kit-downloads.fabric.io/cocoapods/crashlytics/3.7.0/crashlytics.zip
- Versions: 3.7.0, 3.6.0, 3.5.0, 3.4.1, 3.4.0, 3.3.4, 3.3.3, 3.3.1, 3.3.0,
在
podfile中添加
pod 'Fabric', '~> 1.6.7’ 和 pod 'Crashlytics', '~> 3.7.0'
终端命令:pod install
3./Debug-iphonesimulator/TeamTalk.build/Script-817CB3AD1B3BC68D0004AFEA
.sh: line 2: ./Fabric.framework/run: No such file or directory
![Script-817CB3AD1B3BC68D0004AFEA.sh: <wbr>line <wbr>2: <wbr>./Fabric.framework/run: <wbr>No <wbr>](https://i-blog.csdnimg.cn/blog_migrate/a4c26d1e5885305701be709a3d33442f.gif)
解决方法:remove the fabric script from run script
![Script-817CB3AD1B3BC68D0004AFEA.sh: <wbr>line <wbr>2: <wbr>./Fabric.framework/run: <wbr>No <wbr>](https://i-blog.csdnimg.cn/blog_migrate/a4c26d1e5885305701be709a3d33442f.gif)
![Script-817CB3AD1B3BC68D0004AFEA.sh: <wbr>line <wbr>2: <wbr>./Fabric.framework/run: <wbr>No <wbr>](https://i-blog.csdnimg.cn/blog_migrate/a4c26d1e5885305701be709a3d33442f.gif)
OK,现在就可以成功在模拟器上面跑起来了。
后续如果还有问题的话,我会及时更新在这里。