cranberrygame / cordova-plugin-ad-chartboost

Other
8 stars 14 forks source link

'Chartboost/Chartboost.h' file not found #9

Open knobapps opened 8 years ago

knobapps commented 8 years ago

Exporting using Construct 2, then compiling using cordova, I get the following error in iOS. I do not get the error in Android.

/Users/user30017/Desktop/BCQuestForLove_iOS/platforms/ios/build/B.C.\ Quest\ for\ Love.build/Debug-iphonesimulator/B.C.\ Quest\ for\ Love.build/Objects-normal/i386/ChartboostPlugin.o In file included from /Users/user30017/Desktop/BCQuestForLove_iOS/platforms/ios/B.C. Quest for Love/Plugins/cordova-plugin-ad-chartboost/ChartboostPlugin.m:5: B.C. Quest for Love/Plugins/cordova-plugin-ad-chartboost/ChartboostPlugin.h:6:9: fatal error: 'Chartboost/Chartboost.h' file not found

import <Chartboost/Chartboost.h>

    ^

1 error generated.

knobapps commented 8 years ago

Found you cannot have [.] or spaces in your App name.

Ziv-Barber commented 8 years ago

Same here: 'Chartboost/Chartboost.h' file not found In Android everything is OK. Guess that we need somehow to install Chartboost SDK but how to do that?

knobapps commented 8 years ago

No, I found the fix is to remove any spaces from your app name in the confign.xml Example BAD: <name>My APP</name> GOOD: <name>MyAPP</name>

Ziv-Barber commented 8 years ago

My app name doesn't have any spaces in it.

knobapps commented 8 years ago

The other issue I know of, is not using the correct plugin import command line. Send me an email with what you are typing in and I might be able to help. I have done this a few times.

knobapps commented 8 years ago

support@knobapps.com

cranberrygame commented 8 years ago

@knobapps @Ziv-Barber

Try not npm but github url because npm doest not support ios symbolic link.

Use this command:

cordova plugin add cordova plugin add https://github.com/cranberrygame/cordova-plugin-ad-chartboost

Thanks Sang Ki Kwon

Ziv-Barber commented 8 years ago

cordova plugin add https://github.com/cranberrygame/cordova-plugin-ad-chartboost.git worked - thanks!!!

cranberrygame commented 8 years ago

You are welcome

matrixreal commented 7 years ago

i got same here

matrixreal commented 7 years ago

i'm still facing the chartboost.h not found problem even after add it via cordova plugin add https://github.com/cranberrygame/cordova-plugin-ad-chartboost.git i'm using cordova ios 4.4.0 i did also check my app name and there are no spaces any help please ? thank you

Ziv-Barber commented 6 years ago

I this issue again with Xcode 9 and Cordova iOS 4.5.1 How can I add the SDK to xcode?

Ziv-Barber commented 6 years ago

OK found the solution:

  1. Download the Chartboost SDK for iOS from here:

https://answers.chartboost.com/en-us/articles/download

  1. Extract it.
  2. Copy the Chartboost folder inside it into both plugins/cordova-plugin-ad-chartboost and platforms/ios/your_app_name/plugins/cordova-plugin-ad-chartboost/
  3. Close and restart Xcode or it'll not work.
  4. Try to compile
matrixreal commented 6 years ago

@Ziv-Barber thanks is cordova ios 4.5.1 good ? faster ? whats news on it ? (i'm using 4.4.0)