ラベル リリース手順 の投稿を表示しています。 すべての投稿を表示
ラベル リリース手順 の投稿を表示しています。 すべての投稿を表示

2016年10月16日日曜日

GPGSAppController didRegisterForRemoteNotificationsWithDeviceToken

Xcode8のGPGSで以下のエラーが発生
[super application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
どうやらスーパーへの呼び出しが最新のXcodeと合わないようです。

対処法1スーパーを削除する

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { // [super application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken]; // NSLog(@"Got Token for APNS: %@", deviceToken); // send the token to GPGS server so invitations can be sent to the local player // NOTE: GPGPushNotificationEnvironmentProduction indicates this is // using the production APNS service. // GPGPushNotificationEnvironmentSandbox indicates that the sandbox // service should be used. This value needs to match the cooresponding // certificate registered in the play app console, under linked apps > ios in // the section for push notifications. gpg::RegisterDeviceToken(deviceToken, GPGPushNotificationEnvironmentProduction); }

対処法2行を削除する

最新のGPGSソースでは行がなくなっています。

2016年10月11日火曜日

Unity5 AdMob Xcode8 ios10対応

Xcode8 ios10からパーミッションの設定が必要になりました。
Unity5 AdMobプラグインを使用する場合はinfo.plistファイルに以下のパーミッションを追加します。Xcodeのプロジェクトにあります。右クリックでソースを表示できます。

info.plistの設定

    <key>NSCalendarsUsageDescription</key>
    <string>広告に使用します。</string>
    <key>NSCameraUsageDescription</key>
    <string>広告に使用します。</string>
    <key>NSBluetoothPeripheralUsageDescription</key>

    <string>広告に使用します。</string>

パーミッションの設定に失敗した場合

Dear developer,
We have discovered one or more issues with your recent delivery for "". To process your delivery, the following issues must be corrected:
This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.
Once these issues have been corrected, you can then redeliver the corrected binary.
Regards,
The App Store team

2016年9月8日木曜日

GooglePlayGameServiceをXCodeビルドする際のメモ

GooglePlayGameServiceをXCodeビルドする際のメモ

1,cocoapodsのインストール

cd プロジェクト(xcodeprojのあるところ)
sudo gem install cocoapods
pod install
以下ログ
Setting up CocoaPods master repo
CocoaPods 1.1.0.beta.2 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.1.0.beta.2

Setup completed
Analyzing dependencies
Downloading dependencies
Installing GoogleAppUtilities (1.1.1)
Installing GoogleAuthUtilities (2.0.1)
Installing GoogleNetworkingUtilities (1.2.1)
Installing GooglePlayGames (5.1.1)
Installing GooglePlusOpenSource (1.7.1)
Installing GoogleSignIn (4.0.0)
Installing GoogleSymbolUtilities (1.1.1)
Installing GoogleUtilities (1.3.1)
Generating Pods project
Integrating client project
https://developers.google.com/identity/sign-in/ios/start-integrating
[!] Please close any current Xcode sessions and use `Unity-iPhone.xcworkspace` for this project from now on.

以下XCodeの修正

2. XCodeにフレームワーク追加

      AddressBook.framework
      AssetsLibrary.framework
      CoreData.framework
      CoreTelephony.framework
      CoreText.framework
      Security.framework
      libc++.dylib
      libz.dylib
拡張子が変更されています。
dylib >> tbd ios9mod

3. XCodeにフレームワーク追加 other

      GoogleOpenSource.framework
      GoogleSignId.bundle
      GoogleSignId.framework
      gpg.bundle
      gpg.framework
ダウンロードリンク
https://developers.google.com/games/services/downloads/sdks
https://developers.google.com/identity/sign-in/ios/sdk/
https://developers.google.com/+/mobile/ios/upgrading-sdk

4. Other Linker Flags に値を追加

  -ObjC

5、Enable BitcodeをNoにする

6、インポート文の修正

importを以下のようにする
<GoogleSignIn/GIDSignIn.h>
<GoogleSignIn/...>
4か所あります。

以下エラーと修正情報

・Unknown type name '__declspec'
NORETURN 削除 エラー箇所の行頭を削除

GoogleOpenSource.framework/GoogleOpenSource(GTLDateTime.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
・clang: error: linker command failed with exit code 1 (use -v to see invocation)
Build Settings>Build Options>Enable Bitcode =noにする

・Could not launch “app name XXX”
process launch failed: failed to get the task for process -1
Build Settings>Build Options>Provisioning Profileを設定

・Apple Mach-O Linker (ld) Error Group
clang: error: linker command failed with exit code 1 (use -v to see invocation)
CocoaPodsを使用しているプロジェクトは”.xcodeproj”でなく”.xcworkspace”から開きます。

・[super application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
行を削除
プッシュ通知とバックグラウンドの設定。

プッシュ通知用のプロファイルを作成。

そこからキーチェーンで証明書を右クリックして書き出ししてパスワード付きのp12を作る。開発用と製品用の二つが必要。
作成したp12をグーグル開発コンソールのゲームサービスに登録する。
オブジェクトC用のソースをUnityに貼り付ける。

info.plistの設定

  <key>NSCameraUsageDescription</key>
    <string>マルチプレイに使用します</string>

2016年9月6日火曜日

Xcode7へアップグレード後に幾つかのエラー

Xcode7へアップグレード後に幾つかのエラーが発生。

対処方法まとめ


Unknown type name '__declspec'
NORETURN 削除 エラー箇所の行頭を削除

linker command failed with exit code 1 (use -v to see invocation)
Build Settings>Build Options>Enable Bitcode =noにする

Could not launch “app name XXX”
process launch failed: failed to get the task for process -1
Build Settings>Build Options>Provisioning Profileを設定

2015年10月18日日曜日

MacでkeystoreファイルからSHA1取得(フインガープリント)

unityで作成したkeystoreファイルからSHA1を取得する方法。
ターミナルを開いて以下のコマンドを実行します。
keytool -v -list -keystore パス/ファイル名.keystore
パスとファイル名はFinderからドラックアンドドロップで入力できます。
以下がログになります。
:$ keytool -v -list -keystore /Users/ABCDE/Desktop/DEV/ABCDE.keystore
キーストアのパスワードを入力してください:  

キーストアのタイプ: JKS
キーストア・プロバイダ: SUN

キーストアには1エントリが含まれます

別名: recitative
作成日: 2014/10/08
エントリ・タイプ: PrivateKeyEntry
証明書チェーンの長さ: 1
証明書[1]:
所有者: C=jp, ST=Takasaki, L=Gunma, O=com.Recitative, OU=kaihatsu, CN=Yuki Sato
発行者: C=jp, ST=Takasaki, L=Gunma, O=com.Recitative, OU=kaihatsu, CN=Yuki Sato
シリアル番号: 904865
有効期間の開始日: Wed Oct 08 10:42:49 JST 2014終了日: Mon Feb 08 10:42:49 JST 3013
証明書のフィンガプリント:
MD5: ABCDE
SHA1: ここに16進数で表示される
SHA256: ABCDE
署名アルゴリズム名: SHA1withRSA
バージョン: 3
SHA1はグーグルマップAPIやGooglePlayGameServiceなどで正規のアプリである証明のため使用します。

2015年9月11日金曜日

itunes connectで新規iOS Appが表示されない

新規にアプリを登録しようとしたところ。
マイアプリの+を押しても新規iOS Appの項目が無い。。
開発者登録の期限切れかなと、確認してみたところ。
契約が変わりました同意してくださいとのことです。
契約更新後に再度ログインすることで新規app登録ができるようになります。


  • 契約の更新

Review the Paid Applications Schedule.
The iOS paid applications schedule (“iOS Schedule 2”) and the Mac paid application Agreement schedule (“Mac Schedule 2”) have been combined into a single Schedule 2 covering both programs, and the Custom B2B schedules (“Schedule 3”) for iOS and Mac have been combined as well. To create new paid apps and in-app purchases and upload binaries to the App Store, the user with the Legal role must review and accept the Paid Applications Schedule (Schedule 2 to the Apple Developer Program License Agreement) in the Agreements, Tax, and Banking module.

To accept this agreement, the user with the Team Agent role must have already accepted the Apple Developer Program License Agreement in the Member Center.
銀行口座などの情報を入力していませんでした。

  •  Banking Information

Please confirm the banking information provided, certify below and click Save to proceed.
If any of the information is incorrect, click Cancel to return to the previous page and edit the account details.
よく見ると左上にチェックボックスがあります。チェックしてsaveを押せば進めます

2015年6月18日木曜日

リリースメモ 広告を使用する際の注意

アプリの審査提出の最後にチェック項目が表示されます。
審査提出の最後にチェック
広告を使用する際は以上のチェックで審査が通ります。
このチェックを間違えると必ずリジェクトされます。

2015年6月8日月曜日

ビルドメモ

Unity

player settingsのinspectorでiOSのタブを選択し、other settingsを開く。
スクリプティングバックエンドをIL2CPPにする。
アーキテクチャを選択ユニバーサルにする。

xcode

Identityのteamに作成したプロファイルを選択

以下のフレームワーク追加
AdSupport
CoreTelephony
EventKit
EventKitUI
MessageUI
StoreKit
GoogleMobileAds(これはダウンロードした場所にある)

BiludeSettinsタブのEnable Modules(Cなんとか)をYESにする

CapavilitiesタブのIn App Purchaseとゲームセンターをオフにする

product>scheme>Edit scheme

product>archive