在 mac 上从 svn 签出后无法运行 cocos2d-x 工作副本项目
Posted
技术标签:
【中文标题】在 mac 上从 svn 签出后无法运行 cocos2d-x 工作副本项目【英文标题】:Unable to Run cocos2d-x working copy projects after checking out from svn on mac 【发布时间】:2015-05-11 12:17:38 【问题描述】:从 svn 签出后尝试运行工作副本时出现 20 个错误。所有这些错误都与 libcoco2d/ios.a 文件有关。 错误是:-
Libtool /Users/blacklight/Library/Developer/Xcode/DerivedData/MyGame-ejvovhtqcttutnaznyjrcgednhao/Build/Products/Debug-iphoneos/libcocos2d\ iOS.a normal armv7 cd /Users/blacklight/Desktop/cocos2d-x-3.4/projects/MyGame-copy/cocos2d/build 导出 IPHONEOS_DEPLOYMENT_TARGET=5.1.1 导出 PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin: /usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ iPhoneOS8.1.sdk -L/Users/blacklight/Library/Developer/Xcode/DerivedData/MyGame-ejvovhtqcttutnaznyjrcgednhao/Build/Products/Debug-iphoneos -L/Users/blacklight/Desktop/cocos2d-x-3.4/projects/MyGame-复制/cocos2d/build/../external/png/prebuilt/ios -L/Users/blacklight/Desktop/cocos2d-x-3.4/projects/MyGame-copy/cocos2d/build/../external/jpeg/prebuilt/ ios -L/Users/blacklight/Desktop/cocos2d-x-3.4/projects/MyGame-copy/cocos2d/build/../external/tiff/prebuilt/ios -L/Users/blacklight/Desktop/cocos2d-x-3.4 /projects/MyGame-copy/cocos2d/build/../external/webp/prebuilt/ios -L/Users/blacklight/Desktop/cocos2d-x-3.4/projects/MyGame-copy/cocos2d/build/../external /freetype2/prebuilt/ios -L/Users/blacklight/Desktop/cocos2d-x-3.4/projects/MyGame-copy/cocos2d/build/../external/curl/prebuilt/io s -L/Users/blacklight/Desktop/cocos2d-x-3.4/projects/MyGame-copy/cocos2d/build/../external/websockets/prebuilt/ios -L/Users/blacklight/Desktop/cocos2d-x-3.4 /projects/MyGame-copy/cocos2d/build/../external/chipmunk/prebuilt/ios -filelist /Users/blacklight/Library/Developer/Xcode/DerivedData/MyGame-ejvovhtqcttutnaznyjrcgednhao/Build/Intermediates/cocos2d_libs.build/Debug- iphoneos/libcocos2d\ iOS.build/Objects-normal/armv7/libcocos2d\ iOS.LinkFileList -lwebsockets -lcurl -lssl -framework Foundation -lpng -ljpeg -ltiff -lcrypto -lchipmunk -lwebp -lfreetype -o /Users/blacklight/Library /Developer/Xcode/DerivedData/MyGame-ejvovhtqcttutnaznyjrcgednhao/Build/Products/Debug-iphoneos/libcocos2d\iOS.a
错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:找不到文件:-lwebsockets 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:文件:-lwebsockets 不是目标文件(库中不允许) 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:找不到文件:-lcurl 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:文件:-lcurl 不是目标文件(库中不允许) 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:找不到文件:-lssl 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:文件:-lssl 不是目标文件(库中不允许) 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:找不到文件:-lpng 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:文件:-lpng 不是目标文件(库中不允许) 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:找不到文件:-ljpeg 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:文件:-ljpeg 不是目标文件(库中不允许) 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:找不到文件:-ltiff 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:文件:-ltiff 不是目标文件(库中不允许) 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:找不到文件:-lcrypto 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:文件:-lcrypto 不是目标文件(库中不允许) 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:找不到文件:-lchipmunk 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:文件:-lchipmunk 不是目标文件(库中不允许) 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:找不到文件:-lwebp 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:文件:-lwebp 不是目标文件(库中不允许) 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:找不到文件:-lfreetype 错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:文件:-lfreetype 不是目标文件(库中不允许)
【问题讨论】:
【参考方案1】:默认情况下,SVN 不包含 cocos2d/external 文件夹下的预构建 *.a 文件。重新复制 cocos2d 文件夹并手动包含这些文件。
【讨论】:
以上是关于在 mac 上从 svn 签出后无法运行 cocos2d-x 工作副本项目的主要内容,如果未能解决你的问题,请参考以下文章
打开从 svn 签出的 android 项目时出现错误“无法使用 subversion 命令行客户端:svn”