capacitor-community / facebook-login

Facebook Login support
MIT License
103 stars 55 forks source link

Xcode Asset validation failed #109

Closed rcohenprogrammer closed 1 year ago

rcohenprogrammer commented 1 year ago

I've been trying to add an app to the Apple Store via Xcode and have been met with varying errors. I also tried upping the FBSDK version to 15 (in the node module) which eliminated dozens of validation failures, but 3 still remained (two of which are "does not support the minimum OS Version specified in the Info.plist").

The only change I could make that made a difference was when I changed the "platform :ios," to '12.0' in the Podfile, and when I run "pod install --repo-update --verbose", I am met with "The platform of the target App (iOS 12.0) may not be compatible with CapacitorCommunityFacebookLogin (4.0.0-1) which has a minimum requirement of iOS 13.0." (plus a dozen other plugins with a similar message).

Just seeing if there is anything obvious I am missing or can do.

I am using: Ionic: 6.20.1 Capacitor: 4.0.0 Xcode: 14.0 capacitor-community/facebook-login: ^4.0.0-1

These are the errors when I submit the archive through Xcode when leaving the FBSDKCoreKit/FBSDKLoginKit version at 14 in the CapacitorCommunityFacebookLogin.podspec file:


Invalid MinimumOSVersion. Apps that only support 64-bit devices must specify a deployment target of 8.0 or later. MinimumOSVersion in 'App.app/Frameworks/FBSDKCoreKit_Basics.framework' is ''. (ID: cb85ab94-2060-4566-9124-362727d484c5)

Asset validation failed
Invalid MinimumOSVersion. Apps that only support 64-bit devices must specify a deployment target of 8.0 or later. MinimumOSVersion in 'App.app/Frameworks/FBSDKLoginKit.framework' is ''. (ID: bc9295bd-ee16-4fb3-bdc8-e530ef8f7c22)

Asset validation failed
Invalid CFBundleSupportedPlatforms value. The CFBundleSupportedPlatforms key in the Info.plist file in “Payload/App.app/Frameworks/FBAEMKit.framework” bundle contains an invalid value, [iPhoneSimulator]. Consider removing the CFBundleSupportedPlatforms key from the Info.plist file. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue. (ID: 2ad60437-0790-4a8a-913e-5f6cdf0cb96a)

Asset validation failed
Invalid CFBundleSupportedPlatforms value. The CFBundleSupportedPlatforms key in the Info.plist file in “Payload/App.app/Frameworks/FBSDKCoreKit.framework” bundle contains an invalid value, [iPhoneSimulator]. Consider removing the CFBundleSupportedPlatforms key from the Info.plist file. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue. (ID: 4ede0d96-fddd-4b46-9fb2-6b5d42c14618)

Asset validation failed
Invalid bundle structure. The “App.app/Frameworks/FBSDKLoginKit.framework/Versions/A/FBSDKLoginKit” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle (ID: 5cc0bcf1-b259-4f0f-9497-579269a9540a)

Asset validation failed
Invalid bundle structure. The “App.app/Frameworks/FBSDKCoreKit_Basics.framework/Versions/A/FBSDKCoreKit_Basics” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle (ID: 84d2547b-d92b-4aad-b217-12b354641ccb)

Asset validation failed
Missing Info.plist value. A value for the key 'MinimumOSVersion' in bundle App.app/Frameworks/FBSDKCoreKit_Basics.framework is required. (ID: 12a2a88d-b195-443f-99ea-46f3c52e6128)

Asset validation failed
Missing Info.plist value. A value for the key 'MinimumOSVersion' in bundle App.app/Frameworks/FBSDKLoginKit.framework is required. (ID: 8480cbf6-145a-491c-9db6-8ef43b767550)

Asset validation failed
The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker. (ID: bf633012-3d57-46e9-a8d1-f1bce5e74a45)

Asset validation failed
Invalid Bundle. The bundle App.app/Frameworks/FBAEMKit.framework does not support the minimum OS Version specified in the Info.plist. (ID: 26ebc373-94a6-40ea-952c-09f9590f08f0)

Asset validation failed
Invalid Bundle. The bundle App.app/Frameworks/FBSDKCoreKit.framework does not support the minimum OS Version specified in the Info.plist. (ID: ccf17bdd-7b47-40d0-915e-9f309b2ef9e6)

Asset validation failed
Invalid Bundle. The bundle App.app/Frameworks/FBSDKCoreKit_Basics.framework does not support the minimum OS Version specified in the Info.plist. (ID: 7b0abfae-29f1-463b-ad3f-3f5604dcb4ef)

Asset validation failed
Invalid Bundle. The bundle App.app/Frameworks/FBSDKLoginKit.framework does not support the minimum OS Version specified in the Info.plist. (ID: ba6893d9-d37a-4350-bf7a-53085e7d66e6)````

**

> These are the errors when I submit the archive through Xcode when changing the FBSDKCoreKit/FBSDKLoginKit version at 15 in the CapacitorCommunityFacebookLogin.podspec file:

**

Asset validation failed
The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker. (ID: ae98a230-5b15-49c1-be7c-b7933a397ed8)

Asset validation failed
Invalid Bundle. The bundle App.app/Frameworks/FBSDKCoreKit_Basics.framework does not support the minimum OS Version specified in the Info.plist. (ID: 89a02f4a-5d7f-4dc5-b17c-1a712ddabf86)

Asset validation failed
Invalid Bundle. The bundle App.app/Frameworks/FBSDKLoginKit.framework does not support the minimum OS Version specified in the Info.plist. (ID: fd7e79d9-f881-4072-b468-de21eee47b33)
ciccilleju commented 1 year ago

platform :ios, '13.0' use_frameworks!

my podfile works fine using ios 13.0

and then

pod 'CapacitorCommunityFacebookLogin', :path => '../../node_modules/@capacitor-community/facebook-login'

anyway i'm having a lot of issues using the 4.0.0-1 version and i've rolled back to 3.4.0 which works just great

rcohenprogrammer commented 1 year ago

@ciccilleju Yeah, I am defaulted to the above configuration in the Podfile, I just tried 12 in the Podfile because changing the version anywhere else seemed to make no difference and that FBSDK 15 supports ios 12 and FBSDK supports ios 11. And, if I run vtool --show on the ios-arm64 binary in the Pods directory (when using FBSDK 15) it was showing: (I believe)

Load command 9 cmd LC_VERSION_MIN_IPHONEOS version 12.0

Interesting about rolling back, I'll try that.

rcohenprogrammer commented 1 year ago

@ciccilleju Thank you very much! Rolling back worked.