如何在swift框架中使用cocoapods

侯赛因·萨菲

我正在开发一个框架,我在框架工作中添加了带有 cocoapods 的 alamofire,但是当我将框架工作添加到目标应用程序时,它会因以下错误而崩溃:

dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
  Referenced from: /Users/apple/Library/Developer/CoreSimulator/Devices/A9426EAA-64AA-4A24-A50E-24CA9781ED02/data/Containers/Bundle/Application/D068D428-93BA-4224-A673-4456C8A67B41/hovitaSignSdkTest.app/Frameworks/cryptography.framework/cryptography
  Reason: image not found
dyld: launch, loading dependent libraries
DYLD_SHARED_CACHE_DIR=/Users/apple/Library/Developer/CoreSimulator/Caches/dyld/20C69/com.apple.CoreSimulator.SimRuntime.iOS-14-4.18D46
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_LIBRARY_PATH=/Users/apple/Library/Developer/Xcode/DerivedData/hovitaSignSdkTest-fktcpojeagezfbacyzycszboqcfd/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/Cor

我确实将Embed&Sign添加到我的框架的目标应用程序中。

侯赛因·萨菲

我通过添加$(BUILT_PRODUCTS_DIR)/Alamofire构建设置>运行路径搜索路径解决这个问题

在此处输入图片说明

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何在Swift框架中使用Cocoapods?

如何在嵌入式框架中使用Cocoapods?

如何在我的Swift框架中使用核心数据

如何在Flutter插件中使用cocoapods?

如何在没有Cocoapods的Swift项目中使用Sinch SDK

如何在Swift项目中使用Objective-C CocoaPods

如何在Scrapy框架中使用RobotsTxtMiddleware?

如何在框架中使用XCGLogger

如何在NetBeans中使用Bootstrap框架?

如何在3.5框架中使用EnumerateFiles

如何在 Play 框架中使用分页

如何在框架的Objective-C文件中使用Swift类?

如何在没有桥接头的情况下在 Swift 中使用 Objective-C 框架?

如何在框架中使用Swift扩展Objective-C类?

如何在Swift项目中使用目标C框架类?

使用Cocoapods在Swift中导入框架的问题

如何在OCLint中使用cocoapods集成项目?

如何在iOS上的Cocoapods中使用Boost?

如何在Swift中将Chartboost与Cocoapods结合使用?

SWIFT:如何在Swift中使用SubscriberCellularProviderDidUpdateNotifier

使用实体框架时如何在联接中使用OR

如何将Objective-C和Swift混合使用以构建cocoapods框架

如何使用Cocoapods建立基于两个静态库的动态框架(Swift)

在Swift中使用Accelerate框架

使用框架在应用扩展中使用Cocoapods

iOS - 如何在使用 cocoapods 的开发过程中管理框架的依赖关系?

如何在MVVM中使用Prism框架自动单击按钮?

如何在prisma、graphql nexus框架中使用JSON类型?

如何在reactjs中使用框架显示搜索输入?