在 iPad 上使用 XCWorkspace 运行时出现致命错误

问题描述 投票:0回答:0

运行使用 CocoaPods 的应用程序时,我收到此致命错误:

dyld[2583]: Symbol not found: _$s9SwiftData15PersistentModelPAAE8getValue3forqd__s7KeyPathCyxqd__G_tSTRd__AaBRd_0_7ElementQyd__Rsd_0_r0_lF Referenced from: <861A8007-10DC-3734-8C5B-DF2C7D4DF39F> /private/var/containers/Bundle/Application/093A56BC-890A-440F-BEEF-64DF5600671C/Animatica3.app/Animatica3 Expected in:     <49E09F5C-ED41-3CA9-9F56-FEBA1FBE971D> /System/Library/Frameworks/SwiftData.framework/SwiftData

Podfile:

target 'Animatica3' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Animatica3
pod 'MaLiang'
  target 'Animatica3Tests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'Animatica3UITests' do
    # Pods for testing
  end

end

使用:macOS 14.0 beta 4、iPados 17.0 beta

我不能 100% 确定是否是 SwiftData 导致了此错误,但是当我也尝试使用 CoreData 运行应用程序时,这也会崩溃。

cocoapods dyld swift-data ios17 symbol-not-found
© www.soinside.com 2019 - 2024. All rights reserved.