Post

Replies

Boosts

Views

Activity

Custom Framework : dyld: Symbol not found: _$s11CryptoSwift7PaddingO5pkcs7yA2CmFWC
Hi All I am using a custom framework created using 3 different cocoapods. I am using this custom framework in a client app by dropping the xc framework created. As soon as the client app launches it crashes with below crash logs. I have seen this issue reported many other places on apple and stackoverflow but i could not find a proper answer which worked for me. Now i have uploaded both the client app and the framework repo to github so that anyone trying to help me can actually see the set up and code. Please can any one suggest a proper solution to this issue. Framework : https://github.com/deepesh259nitk/PaymentsKit Client App : https://github.com/deepesh259nitk/PaymentClient Crash Logs on app launch dyld: Symbol not found: _$s11CryptoSwift7PaddingO5pkcs7yA2CmFWC  Referenced from: /Users/deepesh.vasthimal/Library/Developer/Xcode/DerivedData/PaymentClient-bnsircrdeaciebedmqaliyxezdqe/Build/Products/Debug-iphonesimulator/PaymentsKit.framework/PaymentsKit  Expected in: /Users/deepesh.vasthimal/Library/Developer/CoreSimulator/Devices/A0876375-98D5-4215-A139-68F29E787388/data/Containers/Bundle/Application/D954732B-EDDC-478E-85C4-C5C9B14FDDEE/PaymentClient.app/Frameworks/CryptoSwift.framework/CryptoSwift  in /Users/deepesh.vasthimal/Library/Developer/Xcode/DerivedData/PaymentClient-bnsircrdeaciebedmqaliyxezdqe/Build/Products/Debug-iphonesimulator/PaymentsKit.framework/PaymentsKit dyld: launch, loading dependent libraries DYLD_SHARED_CACHE_DIR=/Users/deepesh.vasthimal/Library/Developer/CoreSimulator/Caches/dyld/19H2/com.apple.CoreSimulator.SimRuntime.iOS-14-0.18A372 DYLD_ROOT_PATH=/Users/deepesh.vasthimal/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/deepesh.vasthimal/Library/Developer/Xcode/DerivedData/PaymentClient-bnsircrdeaciebedmqaliyxezdqe/Build/Products/Debug-iphonesimulator:/Users/deepesh.vasthimal/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Users/deepesh.vasthimal/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Users/de Things which I have tried. I tried removing the CryptoSwift completely to see if the error happens due to this pod, but the crash then comes to JOSESwift which is another pod. I have realised the crash happens as it cannot find specific symbols both in CryptoSwift and JOSESwift. And also when i use specific methods of these libraries. for example if i use the AES method of CryptoSwift if you see my repo for framework, by adding the below code the crash happens, Just including the pod does not crash but usage of it produces the crash. _$s11CryptoSwift7PaddingO5pkcs7yA2CmFWC guard let aesObject = try? AES(key: [UInt8](Data()),                    blockMode: CBC(iv: Array(Data())),                    padding: .pkcs7) else {       return ""     } 3. I am also adding the pods in the client app so that it does not get added twice if you see Client App repo you will see all the 3 pods are added.
1
0
1.6k
Nov ’20
Creating / distributing swift framework including 3rd party dependecies.
Hi All, After a lot of read on various blogs and stackoverflow i have realised that apple has no proper solution for creating swift frameworks which contains 3rd party dependencies. Can you please guide me through the proper solution in this case and what is the proper script to be used as well to create a framework which can be distributed both for simulator and devices provided my framework contains 3rd party cocoapods. Any documentation example projects will help. Thanks
0
0
364
Oct ’20
Xcode error accessing build database while using the universal script for making framework builds
I am trying to build a Swift framework containing cocoapods, using the below universal framework script got from here: Swift universal framework depending on pod The build fails when using Xcode 12 and UseModernBuildSystem=NO: The Legacy Build System will be removed in a future release. You can configure the selected build system and this deprecation message in File > Workspace Settings. Command PhaseScriptExecution failed with a nonzero exit code error when using Xcode 12 and modern build system: error: accessing build database "/Users/user/Library/Developer/Xcode/DerivedData/SnapKit-gldcozqrglacwhcqsctatmsoiouc/Build/Intermediates.noindex/XCBuildData/build.db": disk I/O error Does anyone know the right solution for this problem or a workaround?
2
0
5k
Oct ’20