我在我的第一个 mac 应用程序中嵌入 Carthage 框架时遇到问题

问题描述

当我的应用程序启动时,我在加载从 Carthage 获得的 VLCKit 框架时遇到问题。这是我得到的错误

dyld: Library not loaded: @loader_path/../Frameworks/VLCKit.framework/Versions/A/VLCKit
  Referenced from: /Users/jonah/Library/Developer/Xcode/DerivedData/MyApp-aucxagzvxytixgactnppqdecyphh/Build/Products/Debug/MyApp.app/Contents/MacOS/MyApp
  Reason: no suitable image found.  Did find:
    /Users/jonah/Library/Developer/Xcode/DerivedData/MyApp-aucxagzvxytixgactnppqdecyphh/Build/Products/Debug/MyApp.app/Contents/MacOS/../Frameworks/VLCKit.framework/Versions/A/VLCKit: code signature in (/Users/jonah/Library/Developer/Xcode/DerivedData/MyApp-aucxagzvxytixgactnppqdecyphh/Build/Products/Debug/MyApp.app/Contents/MacOS/../Frameworks/VLCKit.framework/Versions/A/VLCKit) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)
    /Users/jonah/Library/Developer/Xcode/DerivedData/MyApp-aucxagzvxytixgactnppqdecyphh/Build/Products/Debug/MyApp.app/Contents/MacOS/../Frameworks/VLCKit.framework/Versions/A/VLCKit: code signature in (/Users/jonah/Library/Developer/Xcode/DerivedData/MyApp-aucxagzvxytixgactnppqdecyphh/Build/Products/Debug/MyApp.app/Contents/MacOS/../Frameworks/VLCKit.framework/Versions/A/VLCKit) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)
    /Users/jonah/Library/Developer/Xcode/DerivedData/MyApp-aucxagzvxytixgactnppqdecyphh/Build/Products/Debug/MyApp.app/Contents/MacOS/../Frameworks/VLCKit.framework/Versions/A/VLCKit: stat() Failed with errno=1
(lldb) 

这是我的购物车文件

binary "https://code.videolan.org/videolan/VLCKit/raw/master/Packaging/VLCKit.json" ~> 3.3.0

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)