2016-07-26 15 views
5

私は現在、iOSの10ベータ3でテストしていアプリを持っている、と私はこの1つの方法を実行するたびに、いくつかの奇妙な理由のために、それは以下のstartPedometerUpdatesFromDateライン上でクラッシュしているようだ:私はあることを確認しているCMPedometer SIGABRTクラッシュiOS 10?

if (!_pedometer) { 
    _pedometer = [[CMPedometer alloc] init]; 
} 
[_pedometer startPedometerUpdatesFromDate:[NSDate date] withHandler:^(CMPedometerData * _Nullable pedometerData, NSError * _Nullable error) { 

_pedometernilではありません。アップグレードする前にiOS 9で動作していたので、さらに奇妙です。

あり、コードで何も悪いことを示唆してコンソールには何もありません、それがクラッシュしたときにそれだけで(さえ例外ブレークポイントで)これにつながる:

libsystem_kernel.dylib`__abort_with_payload: 
    0x183a58d94 <+0>: movz x16, #0x209 
    0x183a58d98 <+4>: svc #0x80 
-> 0x183a58d9c <+8>: b.lo 0x183a58db4    ; <+32> 
    0x183a58da0 <+12>: stp x29, x30, [sp, #-16]! 
    0x183a58da4 <+16>: mov x29, sp 
    0x183a58da8 <+20>: bl  0x183a3d7dc    ; cerror_nocancel 
    0x183a58dac <+24>: mov sp, x29 
    0x183a58db0 <+28>: ldp x29, x30, [sp], #16 
    0x183a58db4 <+32>: ret 
私もプライバシーを含めることを確認しました

- 健康を使用法の説明とプライバシーを更新 - 健康共有の使用についての説明インフォメーションリスト。また、iPhone 6 Plusでテストされているため、問題の内容が分からない場合もあります。私が行方不明のものはありますか?

+1

@mattは自分のコードで調整しました。しかし、同じことを経験している誰かには、systemMusicPlayerにアクセスするときにMPMusicPlayerControllerが同じ問題を抱えているように見えるので、iOS 10のバグでなければなりません。また、ここに何かのためのオープンレーダーがあります:https://openradar.appspot.com/26850414 –

+0

私はまたiOS10とAVCaptureSessionを取得しています:私が呼び出すと起動しました - (void)addInput:(AVCaptureInput *)input; – CharlesA

答えて

11

アップルエンジニアリングは、バグレポートを提出した後、私に次のようなフィードバックを与えています:それは使用方法の説明なしに、プライバシーに敏感なデータにアクセスしようとしたため、このアプリがクラッシュした

。アプリのInfo.plistには、アプリがこのデータをどのように使用するかをユーザーに説明する文字列値を持つNSMotionUsageDescriptionキーが含まれている必要があります。

2

私の場合は同じエラーが発生しましたが、これは紛失していましたが、NSContactsUsageDescriptionでした。私は彼らがより良いエラーメッセージを持っていればいいと思う。

14

iOS 10はプライバシーポリシーを更新し、新しいプライバシールールを実装しました。あなたは、以下のフィールドを使ってInfo.plistアプリケーションを更新する必要があります。

説明テキストは、承認が求められたときに表示されます。

<!-- 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> 
+1

連絡先 NSContactsUsageDescription 説明

関連する問題