iOS-Universal-Framework安装问题

bil*_*.ss 6 shell xcode ios telegram osx-elcapitan

我尝试安装iOS-Universal-Framework.尝试从此存储库运行instalation shell screept并始终获取消息:

iOS Real Static Framework Installer
===================================

This will install the iOS static framework templates and support files on your computer.
Note: Real static frameworks require two xcspec files to be added to Xcode.

*** THIS SCRIPT WILL ADD THE FOLLOWING FILES TO XCODE ***

 * Platforms/iPhoneOS.platform/Developer/Library/Xcode/Specifications/UFW-iOSStaticFramework.xcspec
 * Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Specifications/UFW-iOSStaticFramework.xcspec

Where is Xcode installed? (CTRL-C to abort) [ /Applications/Xcode.app/Contents/Developer ]: 
Could not find Xcode files in "/Applications/Xcode.app/Contents/Developer". Please make sure you typed it correctly.
You should see the path "Platforms/iPhoneOS.platform/Developer/Library/Xcode/Specifications" inside of it.

Where is Xcode installed? (CTRL-C to abort) [ /Applications/Xcode.app/Contents/Developer ]:
Run Code Online (Sandbox Code Playgroud)

所以我按回车,因为我已经成功安装了xCode.但是一直得到消息:

Where is Xcode installed? (CTRL-C to abort) [ /Applications/Xcode.app/Contents/Developer ]: 
Could not find Xcode files in "/Applications/Xcode.app/Contents/Developer". Please make sure you typed it correctly.
You should see the path "Platforms/iPhoneOS.platform/Developer/Library/Xcode/Specifications" inside of it.
Run Code Online (Sandbox Code Playgroud)

我试图检查xCode是否安装正确:

xcode-select -p
Run Code Online (Sandbox Code Playgroud)

得到消息:

/Applications/Xcode.app/Contents/Developer
Run Code Online (Sandbox Code Playgroud)

在此之后我尝试安装命令行工具(在此之前我没有它):

gcc -v
Run Code Online (Sandbox Code Playgroud)

并得到消息:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
Run Code Online (Sandbox Code Playgroud)

所以命令行工具应该运行良好.但是我无法完成对Universal-Framework的安装.

PS:我做的所有这些都是因为我想发布Telegram测试项目

小智 0

您需要在 Xcode 源中添加文件夹规范:Platforms/iPhoneOS.platform/Developer/Library/Xcode Platforms/iPhoneSimulator.platform/Developer/Library/Xcode