屏幕旋轉相關
屏幕不旋轉或點擊相冊崩潰
- 查看AppDelegate中是否設置如下方法:
-(UIInterfaceOrientationMask)application:(UIApplication *)application
supportedInterfaceOrientationsForWindow:(nullable UIWindow *)window{
return [RaStarCommon setInterfaceOrientationMask:UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight];
}
- 如果發生旋轉時崩潰
崩潰log
查看 RootViewController 并在內部實現下列方法:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{
return UIInterfaceOrientationIsLandscape(toInterfaceOrientation);
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations{
return [RaStarCommon setInterfaceOrientationMask:UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight];
}
- (BOOL)shouldAutorotate {
return YES;
}
設置動態鏈接時出錯
設置動態鏈接為 -ObjC 時出錯。
- 提示缺少 GC 相關
缺少 GCControllerDidConnectNotification 的類,然后這個類在GameController 庫里面定義
報錯信息
添加 GameController 相關依賴庫。
頁面不顯示
- 調用登錄接口時,不顯示登錄UI頁。
此情況一般為AppDelegate
中缺少 window 層引起,需要在AppDelegate
中添加 window。
.h
//cocos 導出工程
AppController.h
@property (strong, nonatomic) UIWindow *window;
.m / .mm
//cocos 導出工程
AppController.mm
@synthesize window = window;
支付相關
下單失敗
發起支付后,支付回調顯示下單失敗:
1.檢查 Bundle ID 是否與RaStar后臺配置一致。
2.檢查 RaStar 后臺 是否配置商品。
3.檢查代碼中金額與商品名稱是否與內購表中完全對應。
4.海外SDK(RaStarOverseaSDK)檢查 RSOverseaSDK.plist 中貨幣符號是否填寫正確。沙箱帳號相關
登錄沙箱帳號出錯,提示不允許創建 iTunes 賬戶。
登錄沙箱帳號出錯
由于沙箱帳號僅供特定 Bundle ID 對應的游戲使用,故無法在設置中登錄,正確用法如下:
1.前往 設置 --> App Store --> ID --> 注銷
2.點擊游戲內購買按鈕觸發內購事件,彈出選擇框,選擇 使用現有Apple ID 登錄對應沙箱帳號。
沒有購買的內購產品
發起支付后,支付回調顯示沒有購買的內購產品:
1、檢查 Apple 后臺是否配置內購產品。
2、檢查 Apple 后臺中配置內購產品的產品ID是否與 RaStar 后臺中的產品ID完全一致。
3、檢查 協議,銀行業務和稅務 等信息是否補充完畢。購買成功后發貨失敗
發起支付后,支付回調顯示購買成功但游戲內部沒有發貨:
1.檢查 RaStar 是否配置回調地址。
2.CP 查看下服務端對接文檔發貨相關。