ラベル xcode の投稿を表示しています。 すべての投稿を表示
ラベル xcode の投稿を表示しています。 すべての投稿を表示

2016年10月10日月曜日

itunes connect ビルド 反映されない

itunes connectにxcodeでビルドとアップロードしたファイルが表示されません。

原因

  • itunes connectに反映されるまで時間がかかる
  • アップロードしたファイルに問題がある
他にもitunes connectやxcode、developer Centerの連動は即時に反映されないので数十分は待つ必要がある
 アカウント情報の更新にも時間がかかるので上記三つの連動は数時間待つことを見積もっておいたほうが良い。
アップロードしたファイルに問題がある場合はメールが届きます。
 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 NSCalendarsUsageDescription key with a string value explaining to the user how the app uses this data.
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

processing symbol files xcodeエラー

XCodeをアップデート後、アプリをアップロードしようとした際にエラーが発生しました。
processing symbol files xcodeエラー

解決方法?


  1. Apple developerコンソールから開発者のプロファルをダウンロード
  2. ios_distribution-2.cerをダブルクリック
  3. 再度アップロード画面に戻りtyragenボタンを押す

開発者アカウントを更新した直後だったので原因は不明です。

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>

2015年8月7日金曜日

Xcodeエラー:iTunes Store operation failed. No suitable application records were found Verify your bundle identifier 'boundle name' is correct

アプリを新規にリリースする際に以下のエラーが発生。
iTunes Store operation failed. No suitable application records were found Verify your bundle identifier 'boundle name' is correct XXXXXXX
どうやらitunes connectで先にアプリ画面の登録をしないといけないようです。
「iTunes Store operation failed」系のエラーはitunes connectの設定ミスが多いです。

2015年6月11日木曜日

dyld: Symbol not found: _EmptyCustomAttributesCache

iosシュミレーターでプラグインを実行したところ以下のエラーが発生しました。

dyld: Symbol not found: _EmptyCustomAttributesCache
  Referenced from: /Users//Library/Developer/CoreSimulator/Devices/4E2EAB24-9CA2-41D1-B221-187D421F2FC3/data/Containers/Bundle/Application/4ADFFF69-2DBF-4893-BBDE-EB7BD1201C61/.app/
  Expected in: flat namespace

 in /Users//Library/Developer/CoreSimulator/Devices/4E2EAB24-9CA2-41D1-B221-187D421F2FC3/data/Containers/Bundle/Application/4ADFFF69-2DBF-4893-BBDE-EB7BD1201C61/.app/

フォーラムの記事を読んだところ。プラグインはシュミレーターではサポートできないとのことです。
andoroidでの開発に比べると色々手間がかかるなぁ。。

2015年6月8日月曜日

Undefined symbols for architecture arm64: "_UnityRegisterProInterface", referenced from:

xcodeでarchive作成時に以下のエラーが発生。
Undefined symbols for architecture arm64:   "_UnityRegisterProInterface", referenced from:
どうやらunity側での設定漏れがあったようです。

解決方法

unityのplayer settingsのinspectorでiOSのタブを選択し、other settingsを開く。
ScriptingBackendをIL2CPPにする。
architectureを選択ユニバーサルにする。

2015年6月7日日曜日

Warning: Error creating LLDB dyld: Symbol not found: __ZN5metal16g_CurrentEncoderE

UnityのプロジェクトをiOSシュミレータで実行したところ。
xcodeでビルドは成功。
シュミレーターでのアプリ実行に失敗。
以下がエラーログです。
Warning: Error creating LLDB target at path '/Users//Library/Developer/Xcode/DerivedData/Unity-iPhone-cdzaxllpfxblllaqhylpgxdwievn/Build/Products/Debug-iphonesimulator/.app'- using an empty LLDB target which can cause slow memory reads from remote devices.
dyld: Symbol not found: __ZN5metal16g_CurrentEncoderE
  Referenced from: /Users//Library/Developer/CoreSimulator/Devices/4E2EAB24-9CA2-41D1-B221-187D421F2FC3/data/Containers/Bundle/Application/EEDFDB72-C836-487B-B1FC-8267C8942334/.app/Expected in: flat namespace

Unityの公式フォーラムを確認したところUnityバージョン5.0.2f1のバグだそうです。
http://forum.unity3d.com/threads/ios8-xcode6-compatibility.249533/page-4
>__ZN5metal16g_CurrentEncoderE
Unity公式「これはこちらの問題です」

GADUInterstitial.h Use of '@import' when modules are disabled

unityでAdMobのプラグインを使用したとこと以下のエラーが発生
GADUInterstitial.h Use of '@import' when modules are disabled
GADUInterstitial.h Use of '@import' when modules are disabled
モジュールが有効になっていないらしい

解決方法

Enable Modules(Cなんとか)をYESにする

2014年11月21日金曜日

xcodeエラー:Warning: Error creating LLDB target at path

64ビットのisoシュミレーターを使用すると以下のワーニング?エラーが発生します。

Warning: Error creating LLDB target at path '/Users/yuuki/Library/Developer/Xcode/DerivedData/Unity-iPhone-efzkqwujfknmbrclodikqenirxdl/Build/Products/XXXX.app'- using an empty LLDB target which can cause slow memory reads from remote devices.
ようは32ビット向けのアプリだと性能を発揮できないということです。
arm7(64)でコンパイルをすれば表示されなくなります。
64ビットを指定したからといって32ビット機でアプリが使えないわけではないようです。
32ビットと64ビットアプリが両方作成されるようです。

xcode6.1 iOSシュミレーターを日本語入力するには

xcode6.1はiosシュミレーター側から日本語化ができません。
日本語入力をできるようにするには以下の手順が必要です。

手順

1,日本語入力用のスキーマを作成します。
product->schema->new schema
 2,適当なスキーマ名をつけます。
 3.作成したスキーマがproduct->schemaに表示されるので
チェックを入れます。
4.product->schema->edit schemaを開きます。
argumentsのArguments Passed On Launchの+ボタンを押して
[-AppleLanguages (ja)]と入力します。
 
 iosシュミレーターを起動すると日本が入力できます。
プロジェクトごとに日本語入力ようのスキーマを用意すれば
各iosシュミレーターに反映されます。

2014年11月19日水曜日

unityエラー: "_NSSQLiteStoreType", referenced from:

GooglePlayGameServicePluginを使用したxcodeprojectで以下のエラーが発生。
"_NSSQLiteStoreType", referenced from:
CoreData.framework を追加することで解決します。

2014年11月17日月曜日

General,Capabilitys,Bulid Phases,Bulid Rulesが表示されない

xcodeを操作しているうちにGeneral,Capabilitys,Bulid Phases,Bulid Rulesが表示されなくなるときがあります。
代わりにinfoとbulid settingだけ表示されて困りました。
解決方法は以下の画面のGeneralまたはinfoの左にあるリストボタンを押して、自分の作成したアプリのアイコンを選択してください。