2016-07-09 13 views
3

私のアプリをiOS 10に移植するときに非常に問題が発生していたのですが、私は既に存在するコピーで問題なく再インストールしていました。iOS 10のデバイスにまだインストールされていないと、アプリケーションがただちにクラッシュする

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 

をシンプル最終ログ項目に:私はそれを削除し、Xcodeのからそれをインストールしようとしたときにはまだ、アプリは非常に静かに実行した後、すぐに墜落し [アクセス]「< 『プライベート』>」

逆にAppStoreの公開されたコピーからダウンロードしてXcodeから実行すると、アプリはもうクラッシュしません。 iPadで実行すると、デバイスを再起動するまで、ウィンドウに固定されたままになっているローカライゼーションを有効にするメッセージも表示されます。 このアプリもシミュレータでクラッシュします。

私はクラッシュレポートが返されていないので、何がもっと分かりますか?

答えて

2

そのあなたはどのように使用している場合は(ユーザーから許可を取得)

カレンダーイベント
場所

plistの中でそれらを定義するうちに以下のような任意の個人データにアクセスする場合はアプリケーションがクラッシュします上記の場合、プライバシーステートメントをinfo.plistファイルに追加する必要があります。 1以下

は、カレンダーにアクセスすることです: Privacy - Calendars Usage Description = "some text"

key = Privacy - Calendars Usage Description value = "some Text"

+0

はい、そうです。ログエントリを検索して見つけました。私の場合、私は逃しました: NSCalendarsUsageDescriptionと NSMotionUsageDescription –

2

iOS 10は、プライバシーポリシーを続けてきたし、新しいプライバシー規則を実施しています。そして私たちは次のプロジェクトでそれらを実装することを忘れないでください。あなたは以下info.plist

<!-- Calendars --> 
<key>NSCalendarsUsageDescription</key> 
<string><Your description goes here></string> 

に次の行を追加する必要があり、あなたの問題のために

はプライバシー規則の残りの部分です:

<!-- Photo Library --> 
<key>NSPhotoLibraryUsageDescription</key> 
<string><Your description goes here></string> 

<!-- Camera --> 
<key>NSCameraUsageDescription</key> 
<string><Your description goes here></string> 

<!-- Microphone --> 
<key>NSMicrophoneUsageDescription</key> 
<string><Your description goes here></string> 

<!-- Location --> 
<key>NSLocationUsageDescription</key> 
<string><Your description goes here></string> 

<!-- Location When In Use --> 
<key>NSLocationWhenInUseUsageDescription</key> 
<string><Your description goes here></string> 

<!-- Location Always --> 
<key>NSLocationAlwaysUsageDescription</key> 
<string><Your description goes here></string> 

<!-- Calendars --> 
<key>NSCalendarsUsageDescription</key> 
<string><Your description goes here></string> 

<!-- ⏰ Reminders --> 
<key>NSRemindersUsageDescription</key> 
<string><Your description goes here></string> 

<!-- Motion --> 
<key>NSMotionUsageDescription</key> 
<string><Your description goes here></string> 

<!-- Health Update --> 
<key>NSHealthUpdateUsageDescription</key> 
<string><Your description goes here></string> 

<!-- Health Share --> 
<key>NSHealthShareUsageDescription</key> 
<string><Your description goes here></string> 

<!-- ᛒ Bluetooth Peripheral --> 
<key>NSBluetoothPeripheralUsageDescription</key> 
<string><Your description goes here></string> 

<!-- Media Library --> 
<key>NSAppleMusicUsageDescription</key> 
<string><Your description goes here></string> 

この情報がお役に立てば幸いです。 :)

関連する問題