我尝试安装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 ]:
所以我按Enter键,因为我已经成功安装了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.
我试图检查xCode是否已正确安装:
xcode-select -p
并获取消息:
/Applications/Xcode.app/Contents/Developer
此后,我尝试安装命令行工具(在此之前,我没有安装过:)
gcc -v
并获取消息:
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
因此命令行工具应该可以正常工作。但是我无法完成向Universal-Framework的安装。
PS:我做这些都是因为我想启动Telegram test project
您需要在Xcode源中添加文件夹规范:平台/iPhoneOS.platform/Developer/Library/Xcode平台/iPhoneSimulator.platform/Developer/Library/Xcode