Calabash-ios setup clang: error: no such file or directory 'UIKit'

I am currently migrating an existing mobile web application to iOS using PhoneGap. I wanted to test the iOS app using Frank / Calabash. I am currently facing the same problem using one of the test platforms. For Frank and Calabash, when I try to create an application, I get the following error:

clang: error: no such file or directory: 'UIKit' clang: error: no such file or directory: 'AVFoundation' clang: error: no such file or directory: 'CoreMedia' 

In fact, these frameworks exist in the iPhoneOS6.1 SDK.

To narrow down the problem, I created the HelloWorld PhoneGap demo application and tried Frank and Calabash but got the same error.

Demo application is available at https://github.com/jmadan/phonegap-hello.git

 XCODE version used = 4.6.3 Cordova version = 3.0.3 IOS version = 10.8.4 

Has anyone else encountered the same problem ??? If so, any suggestions?

+4
source share
1 answer

We had the same error using calabash and frank. To fix this, it was a bit of a hit and a pass, but we found that launching the cordova is again built to create the entire ios application, for example, for example. there is no frank or Calabash material, and then I put only Calabash into it and was able to compile and run the tests.

How would you subsequently encounter problems with CDVViewController.h that were not found or you might find that this works, but if you are trying to automate your tests using ant script, etc., then it will complain about that the cucumber team does not work in the right place where the cordova compiled your .app file, so beware of this. You may need to make a little copy of the files and edit APP_BUNDLE_PATH when you get to this point.

Hope this helps ...

0
source

Source: https://habr.com/ru/post/1494539/


All Articles