clang将Pod添加到现有Cocos3D项目时出错

时间:2014-12-24 09:19:31

标签: ios cocos3d

在将pod添加到现有Cocos3D helloWorld项目后,我收到以下错误:

clang: error: linker command failed with exit code 1 (use -v to see invocation)

以下是执行的步骤:

  1. CC3HelloWorld项目从分发复制到location / someplace / CC3HelloWorld /
  2. SWTableViewCell添加到Podfile
  3. 通过命令行:pod install
  4. 得到以下投诉:
  5.   

    [!] 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

    1. 然后我进入了构建设置并为$(inherited)OTHER_CFLAGS添加了OTHER_LDFLAGS标记。
    2. 编译并收到以下错误:
    3. 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工作正常。任何帮助,将不胜感激。感谢

      enter image description here

1 个答案:

答案 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.