tuarua / Apple-Signin-ANE

Apple Sign In Adobe Air Native Extension for macOS 10.15+, iOS 13.0+ and tvOS 13.0+
Apache License 2.0
5 stars 4 forks source link

Could not locate iTunesMetadata.plist in archive while installing .ipa to device #16

Closed ArtyomTukanow closed 3 years ago

ArtyomTukanow commented 3 years ago

Hi, I have a problem with AppleSignIn_FW.framework for ios mobile devices. I have been downloaded the latest version of freSwift (5.0.0) and appleSignInANE (1.6.0). I was moved freswift to AIR and to ios_devendeces. There is no problem while application is package. But when it's installing, the message appears, like: image

What am I dooing wrong? XCode v. 12.0, Intellij Idea v. 2019.1.3. AIR v.33.1.1.300

tuarua commented 3 years ago

The error underneath: "ApplicationVerificationFailed" is more meaningful. This is usually a signing problem.

Is your p12 or provisioning profile expired? Have you created a provisioning profile with Apple Sign In entitlements?

image

image

I have no problems myself using IJ 2020, AIR33.1.1.300, Xcode 12, iOS 14.2.

ArtyomTukanow commented 3 years ago

Thank you for responce. Yes, we are updated our provision profile and it works good without AppleSignInANE. But with this ane there are error logs in ios device like:

copy_parent_certificates Error Domain=NSOSStatusErrorDomain Code=-34018 "Client has neither application-identifier nor keychain-access-groups entitlements" UserInfo={numberOfErrorsDeep=0, NSDescription=Client has neither application-identifier nor keychain-access-groups entitlements}

+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:] : 77: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.qbiLXk/extracted/Payload/GoldenFarm.app/Frameworks/AppleSignInANE_FW.framework : 0xe8008001 (An unknown error has occurred.)

Just like application-identifier and keychain-access-groups entitlements are not correct...

tuarua commented 3 years ago

What are your entitlements in your app.xml? You should have this section. N.B. XXXXXX is a placeholder. You need to enter your apple team id

<Entitlements><![CDATA[
    <key>com.apple.developer.applesignin</key>
    <array>
        <string>Default</string>
    </array>
    <key>com.apple.developer.team-identifier</key>
    <string>XXXXXX</string>
]]></Entitlements>

If I incorrectly leave as XXXXXX I too get a similar error.

WARNING: could not locate iTunesMetadata.plist in archive! WARNING: could not locate Payload/Main.app/SC_Info/Main.sinf in archive! ERROR: Install failed. Got error "ApplicationVerificationFailed" with code 0xe8008016: Failed to verify code signature of

ArtyomTukanow commented 3 years ago

I recheck com.apple.developer.team-identifier and it's correct. If it was not, it was an error "ApplicationVerificationFailed" anyway. Looks like the com.apple.developer.team-identifier is dublicates anybody other place...

I just finaly wrote ANE on Objective C and it's look like work. I don't know where is problem, i just resolve it how I can.