2012-12-11 2 views
7

우리는 아이폰 OS가 개인 워크 MobileInstallationInstall, 그것은 다음과 같이에서 iOS 5에서 잘 작동 사용에 IPA 파일을 설치하는 방법 :프로그래밍 방식으로 아이폰 OS 6

typedef int (*MobileInstallationInstall)(NSString *path, NSDictionary *dict, void *na, NSString *path2_equal_path_maybe_no_use); 

int result=pMobileInstallationInstall(ipaPath,[NSDictionary dictionaryWithObject:@"User" forKey:@"ApplicationType"],nil,ipaPath); 

하지만, 아이폰 OS 6,이 방법 (pMobileInstallationInstall는) 항상 반환 - 1.

누군가 나를 도울 수 있습니까? 고마워요 ...

답변

1

How do I change my iOS applications' entitlements?을 따라 앱에 서명하고 xml 파일에 다음을 추가해야합니다.

<key>com.apple.private.mobileinstall.allowedSPI</key> 
<array> 
    <string>Install</string> 
    <string>Browse</string> 
    <string>Uninstall</string> 
    <string>Archive</string> 
    <string>RemoveArchive</string> 
</array> 
+0

이 솔루션은 아직 작동합니까? 나는 그것을 시도했지만 작동하지 않습니다. –

+0

@mihirmehta 항상 -1을 반환하기 때문에 Hello가 작동합니다. 어떠한 제안? iOS6에서 –

+0

이 작동하지 않습니다. –

관련 문제