ios - 已辞职的 ipa 安装在 iOS 8 中,但未安装在 iOS 9+ 中
<p><p>我正在使用以下脚本使用另一个开发者帐户退出应用程序</p>
<pre><code>codesign -f -s "Distribution Certificate Name" <app-name>.app
</code></pre>
<p>应用程序安装但未打开。
这是每个人都遵循的方法</p>
<p>但它不适合我</p>
<p>请在下面找到设备日志,如果您需要更多信息,请告诉我</p>
<p><strong>设备日志</strong></p>
<pre><code>Jul 18 20:24:31 iPad atc <Warning>: |error| Unable to create file lock.
Jul 18 20:24:31 iPad crash_mover <Notice>: (Error) NPSLogging: <NPSDomainAccessor.m +:41> Failed to resolve pairing ID ((null)) or data store ((null)) for active device
Jul 18 20:24:31 iPad profiled <Notice>: (Note ) MC: Provisioning profiles changed
Jul 18 20:24:31 iPad profiled <Notice>: (Note ) MC: Provisioning profiles changed
Jul 18 20:24:31 iPad profiled <Notice>: (Note ) MC: Provisioning profiles changed
Jul 18 20:24:32 iPad storebookkeeperd <Warning>: target sync date from client: 2016-06-28 14:54:42 +0000 (in 10.00 sec)
Jul 18 20:24:32 iPad storebookkeeperd <Warning>: setting target date to: 2016-06-28 14:54:42 +0000 (in 62625085527.50 sec)
Jul 18 20:24:32 iPad storebookkeeperd <Warning>: scheduling sync (via BackgroundTaskJob) 9.999761 seconds from now...
Jul 18 20:24:32 iPad atc <Warning>: LaunchServices: installing placeholder for com.test.app
Jul 18 20:24:32 iPad UserEventAgent <Error>: Could not get event name for stream/token: com.apple.backgroundtaskagent/99: 132: Request for stale data
Jul 18 20:24:32 iPad installd <Notice>: 0x101dac000 -: Install of "/var/tmp/com.apple.atc.Apps/com.test.app.app" type Placeholder requested by atc (pid 31)
Jul 18 20:24:32 iPad installd <Notice>: 0x101dac000 -: Installing <MIInstallableBundle ID=com.test.app; Version=0.0.7, ShortVersion=(null)>
Jul 18 20:24:32 iPad MobileStorageMounter <Error>: 0x199a51310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such process
Jul 18 20:24:32 iPad MobileStorageMounter <Error>: 0x199a51310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jul 18 20:24:32 iPad MobileStorageMounter <Error>: 0x199a51310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jul 18 20:24:32 iPad MobileStorageMounter <Error>: 0x199a51310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jul 18 20:24:32 iPad MobileStorageMounter <Error>: 0x199a51310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jul 18 20:24:32 iPad MobileStorageMounter <Error>: 0x199a51310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jul 18 20:24:32 iPad MobileStorageMounter <Error>: 0x199a51310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jul 18 20:24:32 iPad installd <Notice>: 0x101dac000 -: Made container live for com.test.app at /private/var/mobile/Containers/Data/Application/CF25F5C1-3292-489E-827B-704042967A94
Jul 18 20:24:32 iPad installd <Notice>: 0x101dac000 -: Made container live for com.test.app at /private/var/mobile/Containers/Bundle/Application/C5A68C95-B468-4CD6-B63C-AE78788A3C84
Jul 18 20:24:32 iPad installd <Notice>: 0x101dac000 -: Staging: 0.01s; Waiting: 0.00s; Installation: 0.16s; Overall: 0.18s
Jul 18 20:24:32 iPad deleted <Warning>: LaunchServices: no bundle found with identifier com.apple.CacheDelete
Jul 18 20:24:32 iPad atc <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x15766e400> com.test.app (Placeholder) withPhase:3
Jul 18 20:24:32 iPad atc <Warning>: LaunchServices: installPhaseFinishedForProgress: com.test.app.InstallingPlaceholder - <NSProgress: 0x1576a27c0> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 called, removing progress from cache
Jul 18 20:24:32 iPad atc <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x159114b20> com.test.app (Placeholder) withPhase:0
Jul 18 20:24:32 iPad lsd <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: 0x13ed12ee0> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 to 0
Jul 18 20:24:34 iPad atc <Warning>: LaunchServices: installPhaseFinishedForProgress: com.test.app.Loading - <NSProgress: 0x1575d8370> : Parent: 0x0 / Fraction completed: 0.9900 / Completed: 990 of 1000 called, removing progress from cache
Jul 18 20:24:34 iPad SpringBoard <Warning>: Killing com.test.app for app installation
Jul 18 20:24:34 iPad atc <Warning>: LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x15766e400> com.test.app (Placeholder)
Jul 18 20:24:34 iPad atc <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x15766e400> com.test.app (Placeholder) withPhase:1
Jul 18 20:24:34 iPad lsd <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: 0x13ed12ee0> : Parent: 0x0 / Fraction completed: 0.5900 / Completed: 59 of 100 to 1
Jul 18 20:24:34 iPad installd <Notice>: 0x100584000 -: Install of "/var/mobile/Media/PublicStaging/test.ipa" type Customer requested by atc (pid 31)
Jul 18 20:24:34 iPad installd <Notice>: 0x100584000 -: Installing <MIInstallableBundle ID=com.test.app; Version=0.0.7, ShortVersion=0.0.7>
Jul 18 20:24:35 iPad profiled <Notice>: (Note ) MC: Provisioning profiles changed
Jul 18 20:24:35 iPad installd <Error>:SecTrustEvaluate
Jul 18 20:24:35 iPad mobile_assertion_agent <Notice>: service_one_connection: Connection closed for client iTunes.
Jul 18 20:24:35 iPad mobile_assertion_agent <Notice>: service_one_connection: Connection closed for client iTunes.
Jul 18 20:24:35 iPad installd <Error>:SecTrustEvaluate
Jul 18 20:24:35 iPad installd <Error>:SecTrustEvaluate
Jul 18 20:24:35 iPad installd <Error>: 0x100584000 -: 521: Application is missing the application-identifier entitlement.
Jul 18 20:24:35 iPad installd <Error>: 0x100584000 -: Verification stage failed
Jul 18 20:24:35 iPad atc <Error>: 0x102294000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=63 "Application is missing the application-identifier entitlement." UserInfo=0x1575f4d40 {LegacyErrorString=ApplicationVerificationFailed, FunctionName=-, SourceFileLine=521, NSLocalizedDescription=Application is missing the application-identifier entitlement.}
Jul 18 20:24:35 iPad atc <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Jul 18 20:24:35 iPad lsd <Warning>: LaunchServices: installation failed for app com.test.app
Jul 18 20:24:35 iPad atc <Warning>: LaunchServices: installPhaseFinishedForProgress: com.test.app.Installing - <NSProgress: 0x1577ee5f0> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 called, removing progress from cache
Jul 18 20:24:36 iPad librariand <Error>: ubiquity account is not configured (or is disabled for this client), not creating collection
Jul 18 20:24:36 iPad librariand <Error>: error in _handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
Jul 18 20:24:36 iPad bird <Error>: unable to determine evictable space: Error Domain=LibrarianErrorDomain Code=10 "The operation couldn’t be completed. (LibrarianErrorDomain error 10 - Unable to configure the collection.)" UserInfo=0x15761d5f0 {NSDescription=Unable to configure the collection.}
Jul 18 20:24:42 iPad storebookkeeperd <Warning>: running synchronizeImmediatelyWithCompletionHandler: now
Jul 18 20:24:42 iPad storebookkeeperd <Warning>: - _onQueueSync - beginning synchronize operation...
Jul 18 20:24:42 iPad storebookkeeperd <Warning>: - _onQueueLoadBag - load bag operation beginning...
Jul 18 20:24:42 iPad storebookkeeperd <Warning>: __81-_block_invoke411 _onQueueLoadBag - load bag completed.
Jul 18 20:24:42 iPad storebookkeeperd <Warning>: __89-_block_invoke _onQueueSync - synchronize operation beginning...
Jul 18 20:24:44 iPad storebookkeeperd <Warning>: Transaction Failed: <SBKSyncTransaction: 0x147d6ab40> domain = com.apple.upp, SYNC: anchor=0 -- Error: <SBKStoreError:0x147d94940> "Error Code = SBKStoreErrorCodeStoreAccountSessionExpired (-1004)"
Jul 18 20:24:44 iPad storebookkeeperd <Warning>: __96-_block_invoke279 _onQueueSync - synchronize completed.ERROR = 'Error Code = SBKStoreErrorCodeStoreAccountSessionExpired (-1004)'.
Jul 18 20:24:44 iPad storebookkeeperd <Warning>: Could not synchronize domain 'com.apple.upp' (<SBKStoreError:0x147e14a10> "Error Code = SBKStoreErrorCodeStoreAccountSessionExpired (-1004)").Synchronization will be re-attempted when the network connectivity, or account status has changed.
Jul 18 20:24:50 iPad locationd <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>从<em>iOS 8.3 开始,应用程序的授权是强制性的</em>。</p>
<pre><code>codesign -f -s "Distribution Certificate Name" <app-name>.app
</code></pre>
<p>当您使用上述命令退出应用程序时<em>它会删除现有的权利</em></p>
<p>所以您使用的命令在 iOS 8.4.1 之前有效</p>
<p>因此,为了让应用程序能够从 iOS 8.4.1 运行,您必须签署应用程序以及权利*</p>
<p>这是创建授权文件的命令</p>
<pre><code>codesign -d --entitlements - <appname>.app > entitlements.plist
</code></pre>
<p>然后使用权利签署应用程序</p>
<pre><code>codesign -f -s "Distribution Certificate Name" '--entitlements' 'entitlements.plist' <app-name>.app
</code></pre></p>
<p style="font-size: 20px;">关于ios - 已辞职的 ipa 安装在 iOS 8 中,但未安装在 iOS 9+ 中,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/38429831/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/38429831/
</a>
</p>
页:
[1]