在将pod添加到现有Cocos3D helloWorld项目后,我收到以下错误:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
以下是执行的步骤:
CC3HelloWorld
项目从分发复制到location / someplace / CC3HelloWorld / SWTableViewCell
添加到Podfile [!]
CC3HelloWorld [Debug]
目标会覆盖OTHER_CFLAGS
$(继承)`标志中定义的Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the
构建设置,或者 - 从目标中删除构建设置。[!]
CC3HelloWorld [Debug]
目标会覆盖OTHER_LDFLAGS
$(继承)`标志中定义的Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the
构建设置,或者 - 从目标中删除构建设置。[!]
CC3HelloWorld [Release]
目标会覆盖OTHER_CFLAGS
$(继承)`标志中定义的Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the
构建设置,或者 - 从目标中删除构建设置。[!]
CC3HelloWorld [Release]
目标会覆盖OTHER_LDFLAGS
$(继承)`标志中定义的Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the
构建设置,或者 - 从目标中删除构建设置。 Phams-MacBook-Pro:CC3HelloWorld phamdacloc $ pod install
$(inherited)
和OTHER_CFLAGS
添加了OTHER_LDFLAGS
标记。ld: library not found for -lPods-SWTableViewCell clang: error: linker command failed with exit code 1 (use -v to see invocation)
我似乎无法通过此clang错误。请注意,这只发生在我将现有的CC3HelloWorld项目复制为开始我的工作的起始模板时。如果我开始一个不使用Cocos3D的全新项目,那么pod工作正常。任何帮助,将不胜感激。感谢
答案 0 :(得分:1)
Try by deleting the podfile from your project and reinstall by using following commands,
If you are creating workspace of your project,
Terminal-->cd Drag and drop your project(mention your project path)-->touch podfile-->open podfile(mention your podname)-->pod install (or) pod update
Still you are facing the same issue check whether SWTableViewCell file is present in your pod.