Tuesday, June 11, 2024
HomeiOS Developmentswift - iOS Framework integration concern

swift – iOS Framework integration concern


  1. I’ve iOS Cellular App developed in Swift.
  2. I’ve built-in one framework developed utilizing Goal-C inside my utility.
  3. I’ve built-in one other framework developed utilizing swift inside my Goal-C framework.
  4. I’m not utilizing Cocoapods/Carthrage/SPM, and many others. Added frameworks utilizing
    **
    Challenge Goal > Common tab > Frameworks**

Now, Every time I’m attempting run the applying, App is crashing with following error

# **`dyld[9674]: Library not loaded: @rpath/Wallet_Swift.framework/Wallet_Swift
# Referenced from: <82924AFE-C6D1-389A-B3C3-9572012345F1> /personal/var/containers/Bundle/Software/2E7D5B86-2871-127B-AE35-0DE6A1234F37/mySwiftApp/Frameworks/ObjectiveCFramework.framework/ObjectiveCFramework
# Cause: tried: '/usr/lib/swift/Wallet_Swift.framework/Wallet_Swift' (no such file, not in dyld cache), '/personal/preboot/Cryptexes/OS/usr/lib/swift/Wallet_Swift.framework/Wallet_Swift' (no such file), '/personal/var/containers/Bundle/Software/2E7D5B86-2871-127B-AE35-0DE6A1234F37/mySwiftApp/Frameworks/Wallet_Swift.framework/Wallet_Swift' (no such file), '/personal/var/containers/Bundle/Software/2E7D5B86-2871-127B-AE35-0DE6A1234F37/mySwiftApp/Frameworks/ObjectiveCFramework.framework/Frameworks/Wallet_Swift.framework/Wallet_Swift' (code signature in <B63065D0-54F6-3CBE-85FB-B855974D59D6> '/personal/var/containers/Bundle/Software/2E7D5B86-2871-127B-AE35-0DE6A1234F37/mySwiftApp/Frameworks/ObjectiveCFramework.framework/Frameworks/Wallet_Swift.framework/Wallet_Swift' not legitimate to be used in course of: mapped file has no cdhash, fully unsigned? Code needs to be no less than ad-hoc signed.), '/usr/lib/swift/Wallet_Swift.framework/Wallet_Swift' (no such file, not in dyld cache), '/personal/preboot/Cryptexes/OS/usr/lib/swift/Wallet_Swift.framework/Wallet_Swift' (no such file), '/personal/var/containers/Bundle/Software/2E7D5B86-2871-127B-AE35-0DE6A1234F37/mySwiftApp/Frameworks/Wallet_Swift.framework/Wallet_Swift' (no such file), '/personal/var/containers/Bundle/Software/2E7D5B86-2871-127B-AE35-0DE6A1234F37/mySwiftApp/Wallet_Swift.framework/Wallet_Swift' (no such file), '/Purposes/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin/Wallet_Swift.framework/Wallet_Swift' (no such file), '/personal/preboot/Cryptexes/OS/Purposes/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin/Wallet_Swift.framework/Wallet_Swift' (no such file), '/usr/lib/swift/Wallet_Swift.framework/Wallet_Swift' (no such file, not in dyld cache), '/personal/preboot/Cryptexes/OS/usr/lib/swift/Wallet_Swift.framework/Wallet_Swift' (no such file), '/personal/var/containers/Bundle/Software/2E7D5B86-2871-127B-AE35-0DE6A1234F37/mySwiftApp/Frameworks/Wallet_Swift.framework/Wallet_Swift' (no such file), '/personal/var/containers/Bundle/Software/2E7D5B86-2871-127B-AE35-0DE6A1234F37/mySwiftApp/Wallet_Swift.framework/Wallet_Swift' (no such file), '/Purposes/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin/Wallet_Swift.framework/Wallet_Swift' (no such file), '/personal/preboot/Cryptexes/OS/Purposes/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin/Wallet_Swift.framework/Wallet_Swift' (no such file)`**
  1. Tried to make framework optionally available/required
  2. Tried with Tackle sanitizer
  3. Tried with Don’t embed.

I’ve added frameworks utilizing
**
Challenge Goal > Common tab > Frameworks**

(Notice: Minimal deployment goal for all frameworks and App is 13.0.)

I need to combine the swift Framework inside Goal-C framework after which my Goal-C framework inside my swift app.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments