2016-01-13 44 views
3

我使用safari安裝.mobileconfigios安裝mobileconfig凍結白屏

但是,有時當我引起Safari瀏覽器時,它會導航到安裝mobileconfig頁面。

屏幕將凍結在白色屏幕上,不顯示右上方的安裝按鈕。

象下面這樣:

enter image description here

有沒有人有遇到同樣的問題?

我的代碼來調用Safari是使用下面的代碼:

NSURL *url = [NSURL  URLWithString:@"http://127.0.0.1:777/myconfig.mobileconfig"]; 
    [[UIApplication sharedApplication]openURL:url]; 

我複製錯誤命令日誌象下面這樣:

Jan 7 21:53:25 James-iphone nsurlsessiond[109] <Error>: Task 2 for client <CFString 0x154e5e4f0 [0x1a0e33b68]>{contents = "com.apple.mobileassetd"} completed with error - code: -999 
Jan 7 21:53:25 James-iphone Preferences[464] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName] 
Jan 7 21:53:25 James-iphone Preferences[464] <Notice>: MIS: Using empty blacklist. 
Jan 7 21:53:25 James-iphone syncdefaultsd[519] <Notice>: (Note) marked "com.me.keyvalueservice" topic as "opportunistic" on <APSConnection: 0x136515d10> 
Jan 7 21:53:26 James-iphone Preferences[464] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName] 
Jan 7 21:53:26 James-iphone Preferences[464] <Notice>: MIS: Using empty blacklist. 
Jan 7 21:53:26 James-iphone Preferences[464] <Notice>: (Note) MC: Applying iPhone defaults 
Jan 7 21:53:26 James-iphone Preferences[464] <Warning>: BTM: attaching to BTServer 
Jan 7 21:53:26 James-iphone Preferences[464] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName] 
Jan 7 21:53:26 James-iphone Preferences[464] <Notice>: MIS: Using empty blacklist. 
Jan 7 21:53:27 James-iphone syncdefaultsd[519] <Notice>: (Note) marked "com.me.keyvalueservice" topic as "enabled" on <APSConnection: 0x136515d10> 
Jan 7 21:53:27 James-iphone MobileSafari[514] <Error>: KeychainGetICDPStatus: keychain: -25300 
Jan 7 21:53:27 James-iphone MobileSafari[514] <Error>: KeychainGetICDPStatus: status: off 
Jan 7 21:53:27 James-iphone MobileSafari[514] <Error>: KeychainGetICDPStatus: keychain: -25300 
Jan 7 21:53:27 James-iphone MobileSafari[514] <Error>: KeychainGetICDPStatus: status: off 
Jan 7 21:53:27 James-iphone MobileSafari[514] <Error>: KeychainGetICDPStatus: keychain: -25300 
Jan 7 21:53:27 James-iphone MobileSafari[514] <Error>: KeychainGetICDPStatus: status: off 
Jan 7 21:53:28 James-iphone Preferences[464] <Warning>: *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3512.30.14/UITableView.m:1720 
Jan 7 21:53:28 James-iphone Preferences[464] <Error>: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 5. The number of rows contained in an existing section after the update (7) must be equal to the number of rows contained in that section before the update (4), plus or minus the number of rows inserted or deleted from that section (2 inserted, 0 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).' 
*** First throw call stack: 
(0x183805900 0x182e73f80 0x1838057d0 0x18417899c 0x1886f004c 0x1941301c4 0x194136d64 0x183259630 0x1832595f0 0x18325ecf8 0x1837bcbb0 0x1837baa18 0x1836e9680 0x184bf8088 0x188560d90 0x1000b7718 0x18328a8b8) 
Jan 7 21:53:28 James-iphone SpringBoard[54] <Warning>: HW kbd: Failed to set (null) as keyboard focus 
Jan 7 21:53:28 James-iphone com.apple.xpc.launchd[1] (UIKitApplication:com.apple.Preferences[0xfe24][464]) <Notice>: Service exited due to signal: Abort trap: 6 
Jan 7 21:53:28 James-iphone SpringBoard[54] <Warning>: Application 'UIKitApplication:com.apple.Preferences[0xfe24]' crashed. 
Jan 7 21:53:28 James-iphone UserEventAgent[23] <Warning>: 2463897065357: id=com.apple.Preferences pid=464, state=0 
Jan 7 21:53:28 James-iphone MobileGestaltHelper[88] <Error>: libMobileGestalt MobileGestalt.c:276: server_access_check denied access to question UniqueDeviceID for pid 519 
Jan 7 21:53:28 James-iphone syncdefaultsd[519] <Error>: libMobileGestalt MobileGestaltSupport.m:151: pid 519 (syncdefaultsd) does not have sandbox access for re6Zb+zwFKJNlkQTUeT+/w and IS NOT appropriately entitled 
Jan 7 21:53:28 James-iphone syncdefaultsd[519] <Error>: libMobileGestalt MobileGestalt.c:537: no access to UniqueDeviceID (see <rdar://problem/11744455>) 
Jan 7 21:53:28 James-iphone diagnosticd[82] <Error>: unable to find offset 0x8327f9a4 in shared cache for arch 'arm64' 
Jan 7 21:53:28 James-iphone ReportCrash[520] <Notice>: platform_thread_get_unique_id matched 240727 
Jan 7 21:53:28 James-iphone ReportCrash[520] <Notice>: Formulating report for corpse[464] Preferences 
Jan 7 21:53:28 James-iphone ReportCrash[520] <Warning>: saved type '109_Preferences' report (21 of max 25) as /var/mobile/Library/Logs/CrashReporter/Preferences_2016-01-07-215328_James-iphone.ips 
Jan 7 21:53:29 James-iphone pkd[154] <Warning>: assigning plug-in app.cyan.timy.dayext(2.2) to plugin sandbox 
Jan 7 21:53:29 James-iphone pkd[154] <Warning>: enabling pid=54 for plug-in app.cyan.timy.dayext(2.2) B9580AEF-CE50-4DD3-A98C-9B5AF2933220 /private/var/mobile/Containers/Bundle/Application/D753EF69-C9C2-4C71-9755-79F8553787A9/HourDay.app/PlugIns/DayExt.appex 
Jan 7 21:53:30 James-iphone SpringBoard[54] <Warning>: plugin app.cyan.timy.dayext invalidated 
Jan 7 21:53:31 James-iphone SpringBoard[54] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application. 
Jan 7 21:53:31 James-iphone SpringBoard[54] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application. 
Jan 7 21:53:31 James-iphone com.apple.WebKit.WebContent[518] <Error>: CoreAnimation: failed to allocate IOSurface 
Jan 7 21:53:36 James-iphone mediaserverd[25] <Notice>: '' (pid = 516) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None 
Jan 7 21:53:36 James-iphone com.apple.xpc.launchd[1] (com.apple.WebKit.WebContent.A90CE0BD-CDCB-43AB-9311-B0D990645C4E[516]) <Warning>: Service exited with abnormal code: 1 
Jan 7 21:53:36 James-iphone mediaserverd[25] <Notice>: '' (pid = 516) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None 
Jan 7 21:53:36 James-iphone mediaserverd[25] <Notice>: 'FigPlayer - 31' (pid = 31) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None 
Jan 7 21:53:36 James-iphone SpringBoard[54] <Warning>: [MPUSystemMediaControls]  Updating supported commands for now playing application. 

也許可以給你一些提示。

回答

1

您是否正在安裝其他配置文件或其他配置文件?我現在已經替換了幾次,iOS 9.1在iPhone 6+上不喜歡它。

唯一的(最希望無痛)的方式,我發現我是通過Xcode的

安裝新的之前在Xcode中刪除舊的配置文件:

1) Click on the "Window" menu 
2) Click on "Devices" 
3) Wait for your Device (devices) to load .. Oh make sure they're  plugged in! hah 
4) Right click on the device you need to change profiles on 
5) Click on "Show provisioning profiles" 

在那裏你可以添加和刪除型材安全:)

編輯

其他選項是所謂OTAC(空中configurati上)......這是當你的移動電話供應商向您發送新的APN設置,它要求你安裝設置「出於藍」發生了什麼......

的文檔是在這裏:

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/iPhoneOTAConfiguration/Introduction/Introduction.html

您將遇到的唯一問題是,您不能在模擬器上執行此操作,因此您最好創建「虛擬配置文件」以避免替換您的開發或生產配置文件。

另外要注意的,我發現這個職位上的位置:Installing a configuration profile on iPhone - programmatically

+0

感謝您的第一個反應。但我有一些目的,將通過編碼來替換和安裝mobileconfig文件。或者有可能使用代碼刪除配置文件?不是每次都顯示問題,有時會顯示問題。但我不知道爲什麼..謝謝。 – dickfala

+0

對啊,在這種情況下,我會再次更新我的答案:) –

+0

對不起,也許你誤解了我的意思。我已經使用httpserver打開Safari,幾乎可以導航到配置文件安裝頁面(可以在右上方安裝藍色文本)。我使用httpserver(https://github.com/natevw/CouchTalk-iOS/blob/master/CouchTalk/HTTPServer.h)。但有時用戶要安裝配置文件,用戶點擊按鈕並打開url進行安裝。它將顯示屏幕頁面。有其他的方法來解決使用openurl的問題,或者爲什麼要顯示白屏,是OS Bug? – dickfala