私はちょうどChartboostを見つけましたが、私は今SDKを統合しようとしていますが、何らかの理由でこのチュートリアルのステップ3で:https://answers.chartboost.com/hc/en-us/articles/205853276-Download-Integrate-the-Chartboost-SDK-for-iOS-Swift私は次のようなエラーが表示されます:未解決の識別子 "Chartboost"の使用。私はTheres何か私のヘッダーファイルで間違っていると思う私はChartboost私は(ステップ2)を宣言するのでthats。しかし、ちょうど間違った場所にいると、どこにコードを置く必要があるのかわからないため、私はAppDelegate.swiftに入れました。なぜなら、didFinishLaunchingWithOptions関数を持つ唯一のファイルだからです。どうすればこの問題を解決できますか?Swift SpriteKitにChartboost SDKを統合するには?
ヘッダファイル:
#ifndef Header_h
#define Header_h
#import <UIKit/UIKit.h>
#import <Chartboost/Chartboost.h>
#import <CommonCrypto/CommonDigest.h>
#import <AdSupport/AdSupport.h>
#endif /* Header_h */
AppDelegate:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Initialize the Chartboost library
Chartboost.startWithAppId("AppId", appSignature: "AppSignature", delegate: nil)
}
関連するコードで質問を更新し、エラーが発生している場所を示してください。 – rmaddy
今変更しました –
これはどのヘッダファイルですか?それはAppDelegate.swiftにインポートされますか? – rmaddy