Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with last version of TCSDK when archiving application : Frameworks/TCSDK.framework/TCSDK' because it was not built for platform iOS #16

Open
tonicfx opened this issue Jun 29, 2021 · 2 comments

Comments

@tonicfx
Copy link

tonicfx commented Jun 29, 2021

Hello, when I archive Application, build is success, but when application is launched, it crash with error

Termination Description: DYLD, dyld: Using shared cache: 42E6D1CB-BF6C-359D-A3D8-AD0D179BC8B6 | dependent dylib '@rpath/TCSDK.framework/TCSDK' not found for '/private/var/containers/Bundle/Application/384ED5B8-DFFF-4479-809A-3E9871D70FF3/Fortuneo.app/Fortuneo'. could not use '/private/var/containers/Bundle/Application/384ED5B8-DFFF-4479-809A-3E9871D70FF3/Fortuneo.app/Frameworks/TCSDK.framework/TCSDK' because it was not built for platform iOS Highlighted by Thread: 0

Dependancies in POD :

pod 'TCCore', :podspec => 'https://raw.githubusercontent.com/TagCommander/pods/master/TCCore/4/7/5/TCCore.podspec', :configuration => ['Debug', 'E2E', 'Recette', 'Validation', 'Preprod', 'Production'] pod 'TCSDK', :podspec => 'https://raw.githubusercontent.com/TagCommander/pods/master/TCSDK/4/6/4/TCSDK.podspec', :configuration => ['Debug', 'E2E','Recette', 'Validation', 'Preprod', 'Production'] pod 'TCPrivacy', :podspec => 'https://raw.githubusercontent.com/TagCommander/pods/master/TCPrivacy/4/8/4/TCPrivacy.podspec', :configuration => ['Debug','E2E','Recette', 'Validation', 'Preprod', 'Production']

Compilation with :

XCode 12.5
Swift version : Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
Target: x86_64-apple-darwin20.3.0

@CommandersAct
Copy link
Owner

First question: Does that mean that you solved the "import swift" issue?
Second question: Can you check that inside the XCFramework you have the right architectures (arm74/armv7) for iOS.
Third question: which version of cocoapod are you using? Is it compatible with XCFrameworks? (should be 1.10.1+ I think)

@tonicfx
Copy link
Author

tonicfx commented Jun 29, 2021

  • First question: Does that mean that you solved the "import swift" issue? Yes

  • Second question: Can you check that inside the XCFramework you have the right architectures (arm74/armv7) for iOS.

lipo -info ./Pods/TCSDK/TCSDK.xcframework/ios-arm64_armv7/TCSDK.framework/TCSDK Architectures in the fat file: ./Pods/TCSDK/TCSDK.xcframework/ios-arm64_armv7/TCSDK.framework/TCSDK are: armv7 arm64

Third question: which version of cocoapod are you using? Is it compatible with XCFrameworks? (should be 1.10.1+ I think)
pod --version 1.10.1

I rollback my changes by previous version

  #TagCommander
  pod 'TCCore', :podspec => 'https://raw.githubusercontent.com/TagCommander/pods/master/TCCore/4/7/3/TCCore.podspec',  :configuration => ['Debug','E2E', 'Recette', 'Validation', 'Preprod', 'Production']
  pod 'TCSDK', :podspec => 'https://raw.githubusercontent.com/TagCommander/pods/master/TCSDK/4/6/3/TCSDK.podspec', :configuration => ['Debug','E2E', 'Recette', 'Validation', 'Preprod', 'Production']
  pod 'TCPrivacy', :podspec => 'https://raw.githubusercontent.com/TagCommander/pods/master/TCPrivacy/4/7/10/TCPrivacy.podspec', :configuration => ['Debug','E2E', 'Recette', 'Validation', 'Preprod', 'Production']

Works with versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants