2012-12-11 24 views
7

हम आईओएस निजी रूपरेखा MobileInstallationInstall, यह iOS 5 में ठीक काम किया इस तरह का प्रयोग एक आईपीए फ़ाइल को स्थापित करने के लिए:कैसे प्रोग्राम के IOS 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); 

लेकिन, iOS 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

@ मिहिर्महेता हैलो यह समाधान काम कर रहा है, क्योंकि यह हमेशा मुझे वापस कर रहा है -1। कोई उपाय? आईओएस 6 पर –

+0

यह काम नहीं कर रहा है –