Apple Watchkit app and extension not installing on local watch [closed] - ios

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I have a Watchkit app, but everytime I try installing I keep getting the failed to install error. I have followed all of apples docs and tech sheets and looked for an answer. My provisioning profile also appears to be correct. Any idea?
Jun 2 12:27:51 SausageKings-iPhone streaming_zip_conduit[304] <Warning>: LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x12d52e9f0> com.devglasses.iris
Jun 2 12:27:51 SausageKings-iPhone streaming_zip_conduit[304] <Warning>: LaunchServices: Not creating progress for <LSApplicationProxy: 0x12d52e9f0> com.devglasses.iris since it is not a placeholder.
Jun 2 12:27:51 SausageKings-iPhone pkd[147] <Warning>: UNINSTALLED:com.devglasses.iris.watchkitextension com.devglasses.iris.watchkitextension(2.1.0) E2342D5F-E5FC-470E-BA39-DDA796CBE5E3 /private/var/mobile/Containers/Bundle/Application/DCEE58B5-78C8-471C-B5AB-2D6679934757/Iris.app/PlugIns/Iris WatchKit Extension.appex
Jun 2 12:27:51 SausageKings-iPhone installd[47] <Notice>: 0x10050c000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/Iris.app" type Developer requested by streaming_zip_conduit (pid 304)
Jun 2 12:27:51 SausageKings-iPhone installd[47] <Notice>: 0x10050c000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.devglasses.iris; Version=2.1.0, ShortVersion=2.1.0>
Jun 2 12:27:51 SausageKings-iPhone profiled[124] <Notice>: (Note ) MC: Provisioning profiles changed
Jun 2 12:27:51 SausageKings-iPhone installd[47] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jun 2 12:27:51 SausageKings-iPhone profiled[124] <Notice>: (Note ) MC: Provisioning profiles changed
Jun 2 12:27:51 SausageKings-iPhone installd[47] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jun 2 12:27:51 SausageKings-iPhone CLTM[20] <Error>: CLTM: _subscription 0x0, _subscribedChannels 0x0
Jun 2 12:27:51 SausageKings-iPhone installd[47] <Error>: resource modified: /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.sfYkm7/extracted/Iris.app/PlugIns/Iris WatchKit Extension.appex/Assets.car
Jun 2 12:27:51 SausageKings-iPhone installd[47] <Error>: 0x10050c000 -[MICodeSigningVerifier performValidationWithError:]: 188: Failed to verify code signature of <MIPluginKitPluginBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.sfYkm7/extracted/Iris.app/PlugIns/Iris WatchKit Extension.appex identifier = com.devglasses.iris.watchkitextension type = 7> : 0xe8008017 (Signed resources have been added, removed, or modified)
Jun 2 12:27:51 SausageKings-iPhone installd[47] <Error>: 0x10050c000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Jun 2 12:27:52 SausageKings-iPhone streaming_zip_conduit[304] <Error>: 0x10040c000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of <MIPluginKitPluginBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.sfYkm7/extracted/Iris.app/PlugIns/Iris WatchKit Extension.appex identifier = com.devglasses.iris.watchkitextension type = 7> : 0xe8008017 (Signed resources have been added, removed, or modified)" UserInfo=0x12d6227b0 {LibMISErrorNumber=-402620393, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=188, FunctionName=-[MICodeSigningVerifier performValidationWithError:], NSLocalizedDescription=Failed to verify code signature of <MIPluginKitPluginBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.sfYkm7/extracted/Iris.app/PlugIns/Iris WatchKit Extension.appex identifier = com.devglasses.iris.watchkitextension type = 7> : 0xe8008017 (Signed resources have been added, removed, or modified)}
Jun 2 12:27:52 SausageKings-iPhone streaming_zip_conduit[304] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Jun 2 12:27:52 SausageKings-iPhone streaming_zip_conduit[304] <Warning>: __dispatch_source_read_socket_block_invoke:203: Failed to install application at file:///var/mobile/Media/PublicStaging/Iris.app/ : Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x12d6242f0 {Error=ApplicationVerificationFailed, ErrorDetail=-402620393, ErrorDescription=Failed to verify code signature of <MIPluginKitPluginBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.sfYkm7/extracted/Iris.app/PlugIns/Iris WatchKit Extension.appex identifier = com.devglasses.iris.watchkitextension type = 7> : 0xe8008017 (Signed resources have been added, removed, or modified)}

Related

Application is not installing after resigning the app

I have followed resigning of the app using this approach
link
When I sign the application using the code signing identity of same account,I am not facing any problem.
When I sign the application using the code signing identity of different account,the app is not installing.
**Find device logs below**
Aug 9 05:02:57 iPhone installd[50] <Notice>: 0x16e087000 -[MIClientConnection lookupUninstalledWithOptions:completion:]: Lookup uninstalled requested by atc (pid 40) with options (null)
Aug 9 05:02:57 iPhone atc[40] <Warning>: |error| Unable to create file lock.
Aug 9 05:02:58 iPhone CommCenter[79] <Notice>: Snapshot path [/var/wireless/Library/Logs/CrashReporter/Baseband/] was removed
Aug 9 05:02:58 iPhone crash_mover[2659] <Notice>: (Warn ) <crash_mover.m nr_isPaired:305> device is not paired
Aug 9 05:03:00 iPhone storebookkeeperd[138] <Warning>: [UPP-SBDDomainSyncedStorageController] target sync date from client: 2016-08-08 23:33:10 +0000 (in 10.00 sec)
Aug 9 05:03:00 iPhone storebookkeeperd[138] <Warning>: [UPP-SBDDomainSyncedStorageController] setting target date to: 2016-08-08 23:33:10 +0000 (in 62621512019.73 sec)
Aug 9 05:03:00 iPhone storebookkeeperd[138] <Warning>: [UPP-SBDDomainSyncedStorageController] scheduling sync (via BackgroundTaskJob) 9.999694 seconds from now...
Aug 9 05:03:00 iPhone SpringBoard[58] <Warning>: could not find icon for representation -> com.testing.test1
Aug 9 05:03:00 iPhone SpringBoard[58] <Warning>: Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x1521a4700 H:|-(0)-[UIView:0x152956030] (Names: '|':UITableViewCellContentView:0x15295f610 )>",
"<NSLayoutConstraint:0x152911190 H:[UIView:0x152956030]-(0)-| (Names: '|':UITableViewCellContentView:0x15295f610 )>",
"<NSLayoutConstraint:0x152776570 H:|-(16)-[UIView:0x152853d80] (Names: '|':UIView:0x152956030 )>",
"<NSLayoutConstraint:0x15290bac0 H:[UIView:0x152853d80]-(16)-| (Names: '|':UIView:0x152956030 )>",
"<NSLayoutConstraint:0x152831960 'UIView-Encapsulated-Layout-Width' H:[UITableViewCellContentView:0x15295f610(0)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x15290bac0 H:[UIView:0x152853d80]-(16)-| (Names: '|':UIView:0x152956030 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
Aug 9 05:03:00 iPhone searchd[168] <Warning>: ====^^^^ DuetExpert missing data, count -> people:0 applicationDeepLinks:0 applications:8 requests:242 missingAllDataRequests:0
Aug 9 05:03:00 iPhone installd[50] <Notice>: 0x16e1bb000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/tmp/com.apple.atc.Apps/com.testing.test1.app" type Placeholder (LSInstallType = 4) requested by atc (pid 40)
Aug 9 05:03:00 iPhone installd[50] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.testing.test1; Version=0.0.10, ShortVersion=(null)>
Aug 9 05:03:00 iPhone installd[50] <Notice>: 0x16e1bb000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.testing.test1 at /private/var/mobile/Containers/Data/Application/0685BF39-E8C4-4D66-A5CF-EFD7CE29773C
Aug 9 05:03:00 iPhone installd[50] <Notice>: 0x16e1bb000 -[MIContainer makeContainerLiveReplacingContainer:reason:withError:]: Made container live for com.testing.test1 at /private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184
Aug 9 05:03:00 iPhone installd[50] <Notice>: 0x16e1bb000 -[MIInstaller performInstallationWithError:]: Install Successful; Staging: 0.00s; Waiting: 0.00s; Preflight/Patch: 0.00s, Verifying: 0.01s; Overall: 0.14s
Aug 9 05:03:00 iPhone nesessionmanager[133] <Notice>: NESMPathControllerSession[com.apple.commcenter.ne.cellularusage:358E9214-5A59-4451-B74C-2D08546A5FAA]: Skip a start command from nehelper[108]: session in state connected
Aug 9 05:03:00 iPhone syncdefaultsd[2661] <Notice>: (Note ) SYDAccount: no account
Aug 9 05:03:00 iPhone syncdefaultsd[2661] <Notice>: (Note ) SYDBootAccount: no account (null)
Aug 9 05:03:00 iPhone syncdefaultsd[2661] <Notice>: (Note ) SYDPIMAccount: no account (null)
Aug 9 05:03:00 iPhone syncdefaultsd[2661] <Notice>: (Note ) SYDAlwaysOnAccount: no account (null)
Aug 9 05:03:01 iPhone tccd[103] <Notice>: Refusing client without bundle identifier (/System/Library/PrivateFrameworks/MusicLibrary.framework/Support/medialibraryd)
Aug 9 05:03:01 iPhone tccd[103] <Notice>: Refusing client without bundle identifier (/System/Library/PrivateFrameworks/MusicLibrary.framework/Support/medialibraryd)
Aug 9 05:03:03 iPhone installd[50] <Notice>: 0x16e247000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/test1.ipa" type Customer (LSInstallType = (null)) requested by atc (pid 40)
Aug 9 05:03:03 iPhone installd[50] <Notice>: 0x16e247000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.testing.test1; Version=0.0.10, ShortVersion=0.0.10>
Aug 9 05:03:03 iPhone profiled[153] <Notice>: (Note ) MC: Provisioning profiles changed
Aug 9 05:03:03 iPhone profiled[153] <Notice>: (Note ) MC: Updating MIS trust...
Aug 9 05:03:03 iPhone securityd[91] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Aug 9 05:03:03 iPhone securityd[91] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Aug 9 05:03:03 iPhone installd[50] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Aug 9 05:03:03 iPhone installd[50] <Notice>: MIS: entitlement 'keychain-access-groups' has value not permitted by provisioning profile 'SmartOffice Mobile Enterprise Dist'
Aug 9 05:03:03 iPhone installd[50] <Error>: 0x16e247000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 142: Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.2qAqVP/extracted/Payload/test1.app : 0xe8008016 (The executable was signed with invalid entitlements.)
Aug 9 05:03:03 iPhone installd[50] <Error>: 0x16e247000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Aug 9 05:03:03 iPhone atc[40] <Error>: 0x16e1bb000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.2qAqVP/extracted/Payload/test1.app : 0xe8008016 (The executable was signed with invalid entitlements.)" UserInfo={LibMISErrorNumber=-402620394, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=142, FunctionName=+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:], NSLocalizedDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.2qAqVP/extracted/Payload/test1.app : 0xe8008016 (The executable was signed with invalid entitlements.)}
Aug 9 05:03:03 iPhone nsurlsessiond[115] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x1465658f0> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone itunesstored[111] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x139146030> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone iaptransportd[73] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x14f537910> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone apsd[95] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x15f57a0b0> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone atc[40] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x1378c3360> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone SpringBoard[58] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x1528762f0> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone BTServer[65] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13fd3f680> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone UserEventAgent[26] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13dde4400> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone passd[136] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x147d80a20> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone homed[135] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x125e04010> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone profiled[153] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13c55ee80> com.testing.test1 (Placeholder) <file:///private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184/com.testing.test1.app>"
)
Aug 9 05:03:03 iPhone lsd[86] <Warning>: LaunchServices: Unentitled vendor device identifier lookup for app com.testing.test1 by pid 40
Aug 9 05:03:03 iPhone installd[50] <Notice>: 0x16e247000 -[MIClientConnection uninstallIdentifiers:withOptions:completion:]: Uninstall requested by atc (pid 40) for identifier com.testing.test1 with options: (null)
Aug 9 05:03:03 iPhone installd[50] <Notice>: 0x16e247000 -[MIUninstaller _uninstallBundleWithIdentifier:error:]: Uninstalling identifier com.testing.test1
Aug 9 05:03:03 iPhone installd[50] <Notice>: 0x16e247000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier com.testing.test1 at /private/var/containers/Bundle/Application/55D4F9A3-DB4A-483F-A11E-E4CE58DE5184
Aug 9 05:03:03 iPhone installd[50] <Notice>: 0x16e247000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier com.testing.test1 at /private/var/mobile/Containers/Data/Application/0685BF39-E8C4-4D66-A5CF-EFD7CE29773C
Aug 9 05:03:03 iPhone nesessionmanager[133] <Notice>: NESMPathControllerSession[com.apple.commcenter.ne.cellularusage:358E9214-5A59-4451-B74C-2D08546A5FAA]: Skip a start command from nehelper[108]: session in state connected
Aug 9 05:03:04 iPhone mobile_assertion_agent[154] <Notice>: service_one_connection: Connection closed for client iTunes.
Aug 9 05:03:09 iPhone kernel[0] <Notice>: AppleKeyStore: operation failed (pid: 44 sel: 34 ret: e00002bc '-536870212')
Aug 9 05:03:09 iPhone kernel[0] <Notice>: AppleKeyStore: operation failed (pid: 44 sel: 34 ret: e00002bc '-536870212')
Aug 9 05:03:09 iPhone keybagd[44] <Error>: 0x16e1bb000 __handle_keystashverify_block_invoke: aks_stash_verify failed e00002bc
Aug 9 05:03:09 iPhone softwareupdateservicesd[178] <Error>: call_and_response: Error from server
Aug 9 05:03:09 iPhone keybagd[44] <Error>: 0x16e12f000 __handle_keystashverify_block_invoke: aks_stash_verify failed e00002bc
Aug 9 05:03:09 iPhone SpringBoard[58] <Error>: call_and_response: Error from server
Aug 9 05:03:09 iPhone softwareupdateservicesd[178] <Warning>: [autosu error]: SPI for AutoSU: probabilityVector is empty
Aug 9 05:03:10 iPhone storebookkeeperd[138] <Warning>: [UPP-SBDDomainSyncedStorageController] running synchronizeImmediatelyWithCompletionHandler: now
Aug 9 05:03:10 iPhone storebookkeeperd[138] <Warning>: [StoreBookkeeper] -[SBKUniversalPlaybackPositionStore _onQueueRunTaskWithName:taskCompletionHandler:runTaskBlock:] _onQueueSync - beginning synchronize operation...
Aug 9 05:03:10 iPhone storebookkeeperd[138] <Warning>: [StoreBookkeeper] -[SBKUniversalPlaybackPositionStore _onQueueLoadBagContextWithCompletionHandler:] _onQueueLoadBag - load bag operation beginning...
Aug 9 05:03:10 iPhone storebookkeeperd[138] <Warning>: [StoreBookkeeper] __81-[SBKUniversalPlaybackPositionStore _onQueueLoadBagContextWithCompletionHandler:]_block_invoke413 _onQueueLoadBag - load bag completed.
Aug 9 05:03:10 iPhone storebookkeeperd[138] <Warning>: [StoreBookkeeper] __89-[SBKUniversalPlaybackPositionStore _onQueueSynchronizeImmediatelyWithCompletionHandler:]_block_invoke _onQueueSync - synchronize operation beginning...
Aug 9 05:03:11 iPhone storebookkeeperd[138] <Warning>: [StoreBookkeeper] __96-[SBKUniversalPlaybackPositionStore _onQueueRunTaskWithName:taskCompletionHandler:runTaskBlock:]_block_invoke281 _onQueueSync - synchronize completed.
Aug 9 05:03:18 iPhone SpringBoard[58] <Warning>: [autosu error]: SPI for AutoSU: probabilityVector is empty
Aug 9 05:03:18 iPhone SpringBoard[58] <Warning>: [autosu error]: SPI for AutoSU: probabilityVector is empty
I think you are not changing the entitlements properly.
i.e
team identifier present in application identifier and keychain access group might be the one that belongs old account.
You have to update those with the one for new account.
then
try signing that it'd work I guess
FYI:
Application identifier is the combination of team id and bundle id
team id you can find from the installed certificate in keychain

How to re-sign an iOS app that has a Framework?

I've been trying to re-sign an .ipa file with a customer's certificate and provisioning profile. I used the command:
codesign -f --deep -s "Customer Certificate" --entitlements entitlements.plist Payload/MyApp.app
However, after I install the application on a device, it crashes on startup with the following error:
kernel[0] <Notice>: AMFI: MyApp(pid 1240) - [deny-mmap] mapped file does not the same team identifier as main process: /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios
kernel[0] <Notice>: AMFI: MyApp(pid 1240) - [deny-mmap] process has team identifier U78696: /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios
kernel[0] <Notice>: AMFI: MyApp(pid 1240) - [deny-mmap] mapped file has team identifier 67CU: /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios
After searching online, it seems like the solution would be to sign the framework as well:
codesign -f --deep -s "Customer Certificate" --entitlements entitlements.plist Payload/MyApp.app/Frameworks/libskia_ios.framework
However, even after doing that, the application still crashes with the same error. Any ideas what else can be changed? I've attached the full start up crash log if that provides any extra insight.
------ Full error of startup crash ------------
SpringBoard[47] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
SpringBoard[47] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
SpringBoard[47] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
kernel[0] <Notice>: xpcproxy[1240] Container: /private/var/mobile/Containers/Data/Application/C893244B-079E-4B43-8F20-5A2 (sandbox)
kernel[0] <Notice>: AMFI: MyApp(pid 1240) - [deny-mmap] mapped file does not the same team identifier as main process: /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios
kernel[0] <Notice>: AMFI: MyApp(pid 1240) - [deny-mmap] process has team identifier U78696: /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios
kernel[0] <Notice>: AMFI: MyApp(pid 1240) - [deny-mmap] mapped file has team identifier 67CU: /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios
com.apple.xpc.launchd[1] (UIKitApplication:U78696.com.ng.cort[0x5e49][1240]) <Notice>: Service exited due to signal: Trace/BPT trap: 5
assertiond[60] <Warning>: Unable to obtain a task name port right for pid 1240: (os/kern) failure (5)
SpringBoard[47] <Warning>: Unable to register for exec notifications: No such process
SpringBoard[47] <Warning>: Unable to obtain a task name port right for pid 1240: (os/kern) failure (5)
SpringBoard[47] <Warning>: Unable to obtain a task name port right for <FBApplicationProcess: 0x19d5eb60; U78696.com.ng.cort; pid: 1240>
SpringBoard[47] <Warning>: Application 'UIKitApplication:U78696.com.ng.cort[0x5e49]' crashed.
SpringBoard[47] <Warning>: Application '(null)' exited for an unknown reason.
ReportCrash[1241] <Error>: assertion failed: 13F69: libsystem_trace.dylib + 15927 [FCFC8D6B-F8E1-3577-84A7-8A591C88D8]: 0x0
Unknown[1241] <Error>:
ReportCrash[1241] <Error>: Process: MyApp [1240]
Path: /private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/MyApp
OS Version: iOS 9.3.2 (13F69)
ReportCrash[1241] <Error>: Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000000e7ffdefe
Triggered by Thread: 0
ReportCrash[1241] <Error>: Dyld Error Message:
Dyld Message: Library not loaded: #rpath/libskia_ios.framework/libskia_ios
Referenced from: /var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/MyApp
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios: mmap() errno=1 validating first page of '/private/var/containers/Bundle/Application/BDB7DDBF-E298-4B68-8567/MyApp.app/Frameworks/libskia_ios.framework/libskia_ios'
Dyld Version: 390.7
ReportCrash[1241] <Error>: Error Formulating Crash Report:
Failed while requesting activity/breadcrumb diagnostics

Building error of iOS app to an ipad

Currently Im making an iOS app and got an error to build the app to iPad.
I have 2 iMacs, on first iMac, building succeeds. but doesn't succeed on Second iMac.The second iMac's documents, apps, user accounts, and settings are the same to the first iMac because I set up the second iMac using migration assistant, so I expected not to have any trouble.
Some information says that there are kind of parent-children relationship between Mac PCs, so I tried to export certification from the first iMac and install to the Second iMac, but It didn't work.
I also tried to make another provisioning profile, change settings of Code Signing in Build Settings, clean, or reboot Xcode, but nothing worked.
Below is error messages I've got.
Feb 12 20:20:34 ec1 streaming_zip_conduit[215] :
LaunchServices: installing app for existing placeholder
jp.co.worksap.E-OmniSupport03
<(null) Not found in database> Feb 12 20:20:34 ec1
streaming_zip_conduit[215] : LaunchServices: Not creating
progress for
jp.co.worksap.E-OmniSupport03 <(null) Not found in database> since
it is not a placeholder. Feb 12 20:20:34 ec1 installd[47] :
0x16e1bb000 -[MIClientConnection installPath:withOptions:completion:]:
Install of "/var/mobile/Media/PublicStaging/E-OmniSupport.app" type
Developer (LSInstallType = (null)) requested by streaming_zip_conduit
(pid 215) Feb 12 20:20:35 ec1 installd[47] : 0x16e087000
-[MIInstaller performInstallationWithError:]: Installing Feb 12 20:20:35 ec1 profiled[85] : (Note )
MC: Provisioning profiles changed Feb 12 20:20:35 ec1 profiled[85]
: (Note ) MC: Updating MIS trust... Feb 12 20:20:35 ec1
securityd[86] : secTaskDiagnoseEntitlements MISSING keychain
entitlements: no stored taskRef found Feb 12 20:20:35 ec1
securityd[86] : secTaskDiagnoseEntitlements MISSING keychain
entitlements: no stored taskRef found Feb 12 20:20:35 ec1 installd[47]
: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 12 20:20:35 ec1 securityd[86] :
secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored
taskRef found Feb 12 20:20:35 ec1 securityd[86] :
secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored
taskRef found Feb 12 20:20:35 ec1 installd[47] :
SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName] Feb 12
20:20:35 ec1 securityd[86] : secTaskDiagnoseEntitlements
MISSING keychain entitlements: no stored taskRef found Feb 12 20:20:35
ec1 securityd[86] : secTaskDiagnoseEntitlements MISSING
keychain entitlements: no stored taskRef found Feb 12 20:20:35 ec1
installd[47] : SecTrustEvaluate [leaf IssuerCommonName
SubjectCommonName] Feb 12 20:20:35 ec1 installd[47] : MIS:
unrecognized status -67049 from codesigning library Feb 12 20:20:35
ec1 installd[47] : 0x16e087000 +[MICodeSigningVerifier
_validateSignatureAndCopyInfoForURL:withOptions:error:]: 142: Failed to verify code signature of
/private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.2KUwcn/extracted/E-OmniSupport.app/Frameworks/SCLAlertView.framework
: 0xe8008001 (An unknown error has occurred.) Feb 12 20:20:35 ec1
installd[47] : 0x16e087000 -[MIInstaller
performInstallationWithError:]: Verification stage failed Feb 12
20:20:35 ec1 streaming_zip_conduit[215] : 0x16e12f000
__MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify
code signature of
/private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.2KUwcn/extracted/E-OmniSupport.app/Frameworks/SCLAlertView.framework
: 0xe8008001 (An unknown error has occurred.)"
UserInfo={LibMISErrorNumber=-402620415,
LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=142,
FunctionName=+[MICodeSigningVerifier
_validateSignatureAndCopyInfoForURL:withOptions:error:], NSLocalizedDescription=Failed to verify code signature of
/private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.2KUwcn/extracted/E-OmniSupport.app/Frameworks/SCLAlertView.framework
: 0xe8008001 (An unknown error has occurred.)} Feb 12 20:20:35 ec1
streaming_zip_conduit[215] : ERROR:
MobileInstallationInstallForLaunchServices returned nil Feb 12
20:20:35 ec1 streaming_zip_conduit[215] :
__dispatch_source_read_socket_block_invoke:274: Failed to install application at
file:///var/mobile/Media/PublicStaging/E-OmniSupport.app/ : Error
Domain=LaunchServicesError Code=0 "(null)"
UserInfo={Error=ApplicationVerificationFailed, ErrorDetail=-402620415,
ErrorDescription=Failed to verify code signature of
/private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.2KUwcn/extracted/E-OmniSupport.app/Frameworks/SCLAlertView.framework
: 0xe8008001 (An unknown error has occurred.)}
Can you come up with anything to this message?
I hope someone helps me out.

ios install the mobileconfig freeze white screen

I am installing the .mobileconfig using the safari.
But, sometimes when I arouse the safari, it will navigation to the install the mobileconfig page.
The screen will freeze on the white screen, that does not show the install button on the right top.
like below:
Have anyone had encounter the same problem?
My code to call the safari is using below code:
NSURL *url = [NSURL URLWithString:#"http://127.0.0.1:777/myconfig.mobileconfig"];
[[UIApplication sharedApplication]openURL:url];
I had copy the error command log like below:
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.
Maybe can give you some hint.
Are you installing OVER other profiles or along with others? I've replaced mine a few times now and iOS 9.1 doesn't like it for me on the iPhone 6+.
The only (want most painless) way I've found is to remove the old profiles before I install new ones via Xcode
On 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"
In there you can add and delete profiles safely :)
edit
The other options is what's called OTAC (over the air configuration)... It's exactly what happens when your mobile phone provider sends you new APN settings and it asks you to install the settings "out of the blue"...
The docs are here:
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/iPhoneOTAConfiguration/Introduction/Introduction.html
The only issue you'll have is that this isn't something you can do on the simulator so you'd better create "dummy profiles" to avoid replacing your development or production ones.
Another note, I did find this post on here: Installing a configuration profile on iPhone - programmatically

iOS MDM enrollment fails in iOS 9 devices

This has been previously working for iOS 7 and 8 devices but now the enrollment fails for new iOS 9 devices. This is what I see in the device logs.
Oct 26 18:00:34 iPhone profiled[412] <Notice>: (Note ) MC: Enrolling in OTA Profile service...
Oct 26 18:00:35 iPhone profiled[412] <Error>: SecTrustEvaluate [leaf AnchorTrusted]
Oct 26 18:00:38 iPhone securityd[83] <Error>: securityd_xpc_dictionary_handler profiled[412] add Error Domain=NSOSStatusErrorDomain Code=-25299 "duplicate item O,cert,159EFDE0,L,dku,com.apple.certificates,0,ctyp,cenc,labl,subj,issr,slnr,pkhh,v_Data,20151026123038.608026Z,7C914284" UserInfo={NSDescription=duplicate item O,cert,159EFDE0,L,dku,com.apple.certificates,0,ctyp,cenc,labl,subj,issr,slnr,pkhh,v_Data,20151026123038.608026Z,7C914284}
Oct 26 18:00:38 iPhone profiled[412] <Error>: SecOSStatusWith error:[-25299] Error Domain=NSOSStatusErrorDomain Code=-25299 "duplicate item O,cert,159EFDE0,L,dku,com.apple.certificates,0,ctyp,cenc,labl,subj,issr,slnr,pkhh,v_Data,20151026123038.608026Z,7C914284" UserInfo={NSDescription=duplicate item O,cert,159EFDE0,L,dku,com.apple.certificates,0,ctyp,cenc,labl,subj,issr,slnr,pkhh,v_Data,20151026123038.608026Z,7C914284}
Oct 26 18:00:38 iPhone profiled[412] <Error>: SecTrustEvaluate [leaf AnchorTrusted]
Oct 26 18:00:38 iPhone profiled[412] <Notice>: (Note ) MC: Attempting to retrieve issued certificate...
Oct 26 18:00:39 iPhone securityd[83] <Error>: SecDbRecordChange db <SecDbConnection rw open> changed outside txn
Oct 26 18:00:39 iPhone profiled[412] <Notice>: (Note ) MC: Issued certificate received.
Oct 26 18:00:39 iPhone Preferences[406] <Notice>: (Error) MC: Install profile data, interactive error. Error: NSError:
Desc : Couldn’t communicate with a helper application.
Sugg : Try your operation again. If that fails, quit and relaunch the application and try again.
Domain : NSCocoaErrorDomain
Code : 4097
Extra info:
{
NSDebugDescription = "connection to service named com.apple.managedconfiguration.profiled";
}
Oct 26 18:00:39 iPhone com.apple.xpc.launchd[1] (com.apple.managedconfiguration.profiled[412]) <Notice>: Service exited due to signal: Trace/BPT trap: 5
Oct 26 18:00:40 iPhone ReportCrash[423] <Error>: assertion failed: 13A452: libsystem_trace.dylib + 15931 [45DE3123-E22D-320F-9F75-1CCD65A33451]: 0x0
Oct 26 18:00:40 iPhone Unknown[423] <Error>:
Oct 26 18:00:40 iPhone ReportCrash[423] <Warning>: os_activity_diagnostic_for_pid() failed!
Oct 26 18:00:40 iPhone ReportCrash[423] <Notice>: Formulating report for corpse[412] profiled
assertion failed: 13A452: libsystem_trace.dylib + 15931
means that your process "profiled" overran its allocated memory and was killed via the kernel/jetsam. iOS 9 has aggressive memory management and kills processes all over the place and even reboots the device nightly.
Just answering my own question. In order to create the X509 certificate from csr you need to create relative distinguished names (RDNs) and add it to the certificate. Once you get the X500Name from PKCS10CertificationRequest and set it to X509v3CertificateBuilder it throws this error. Rather you have to create separate X500Names and proceed with the certificate generation which solved this issue.

Resources