recherche

Maison  >  Questions et réponses  >  le corps du texte

ios - xcodebuild 无法找到'Cordova/CDVViewController.h'

新建了一个cordova iOS的project
可以在xcode中编译运行成功,但是在xcodebuild中则显示

/project/project/Classes/AppDelegate.h:30:9: fatal error: 'Cordova/CDVViewController.h' file not found
#import <Cordova/CDVViewController.h>
        ^
1 error generated.



The following build commands failed:
    CompileC build/project.build/Release-iphoneos/project.build/Objects-normal/armv7s/AppDelegate.o project/Classes/AppDelegate.m normal armv7s objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC build/project.build/Release-iphoneos/project.build/Objects-normal/armv7s/MainViewController.o project/Classes/MainViewController.m normal armv7s objective-c com.apple.compilers.llvm.clang.1_0.compiler
    CompileC build/project.build/Release-iphoneos/project.build/Objects-normal/armv7/AppDelegate.o project/Classes/AppDelegate.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler

按照http://stackoverflow.com/questions/12921295/phonegap-2-1-0-cordova-cdvviewcontroller-h-file-not-found 这个也没有解决,请问有谁遇到过这个问题,如何解决的,谢谢

黄舟黄舟2772 Il y a quelques jours608

répondre à tous(4)je répondrai

  • ringa_lee

    ringa_lee2017-04-17 11:53:36

    问题是我没有先build CordovaLib ,就直接build 主project,先build CordovaLib就好了
    参考http://stackoverflow.com/questions/16445556/still-getting-cordova-cdvviewcontroller-h-file-not-found-error-in-xcode

    répondre
    0
  • 迷茫

    迷茫2017-04-17 11:53:36

    请问 楼主 这个问题后来怎么解决 ?

    répondre
    0
  • 怪我咯

    怪我咯2017-04-17 11:53:36

    楼主最后怎么解决的?

    répondre
    0
  • ringa_lee

    ringa_lee2017-04-17 11:53:36

    在BuildSettings->Header Search Paths 增加如下路径,
    "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include"

    暂时,解决,具体原因还没弄清楚。。

    répondre
    0
  • Annulerrépondre