swift OneSignal(Flutter)-在iOS 17上运行时出现错误- XCode 15

mfpqipee  于 2023-10-15  发布在  Swift
关注(0)|答案(1)|浏览(210)

我更新了我的Xcode并将onesignal_flutter迁移到5.0.1。我还按照指示更新了pod文件(pod 'OneSignalXCFramework','>= 5.0.0','<6.0')。
但是,我还是得到了这个错误:错误(Xcode):框架'OneSignal'未找到
错误(Xcode):链接器命令失败,退出代码为% 1(使用-v查看调用)
1.使用XCode 15
1.更新onesignal_flutter:^5.0.1
1.在模拟器上运行项目

fcg9iug3

fcg9iug31#

请将onsignal_flutter版本更新为5.0.2
请确认pubspec.lock和ios/podspec.lock文件中的以下代码

onesignal_flutter:
    dependency: "direct main"
    description:
      name: onesignal_flutter
      sha256: "79add7f791dbb6939a014006d314ea97b281df1ecd484351bce83c00c942246c"
      url: "https://pub.dev"
    source: hosted
    version: "5.0.2"

- onesignal_flutter (5.0.2):
    - Flutter
    - OneSignalXCFramework (= 5.0.2)
  - OneSignalXCFramework (5.0.2):
    - OneSignalXCFramework/OneSignalComplete (= 5.0.2)
  - OneSignalXCFramework/OneSignal (5.0.2):
    - OneSignalXCFramework/OneSignalCore
    - OneSignalXCFramework/OneSignalExtension
    - OneSignalXCFramework/OneSignalNotifications
    - OneSignalXCFramework/OneSignalOSCore
    - OneSignalXCFramework/OneSignalOutcomes
    - OneSignalXCFramework/OneSignalUser
  - OneSignalXCFramework/OneSignalComplete (5.0.2):
    - OneSignalXCFramework/OneSignal
    - OneSignalXCFramework/OneSignalInAppMessages
    - OneSignalXCFramework/OneSignalLocation
  - OneSignalXCFramework/OneSignalCore (5.0.2)
  - OneSignalXCFramework/OneSignalExtension (5.0.2):
    - OneSignalXCFramework/OneSignalCore
    - OneSignalXCFramework/OneSignalOutcomes
  - OneSignalXCFramework/OneSignalInAppMessages (5.0.2):
    - OneSignalXCFramework/OneSignalCore
    - OneSignalXCFramework/OneSignalNotifications
    - OneSignalXCFramework/OneSignalOSCore
    - OneSignalXCFramework/OneSignalOutcomes
    - OneSignalXCFramework/OneSignalUser
  - OneSignalXCFramework/OneSignalLocation (5.0.2):
    - OneSignalXCFramework/OneSignalCore
    - OneSignalXCFramework/OneSignalNotifications
    - OneSignalXCFramework/OneSignalOSCore
    - OneSignalXCFramework/OneSignalUser
  - OneSignalXCFramework/OneSignalNotifications (5.0.2):
    - OneSignalXCFramework/OneSignalCore
    - OneSignalXCFramework/OneSignalExtension
    - OneSignalXCFramework/OneSignalOutcomes
  - OneSignalXCFramework/OneSignalOSCore (5.0.2):
    - OneSignalXCFramework/OneSignalCore
  - OneSignalXCFramework/OneSignalOutcomes (5.0.2):
    - OneSignalXCFramework/OneSignalCore
  - OneSignalXCFramework/OneSignalUser (5.0.2):
    - OneSignalXCFramework/OneSignalCore
    - OneSignalXCFramework/OneSignalNotifications
    - OneSignalXCFramework/OneSignalOSCore
    - OneSignalXCFramework/OneSignalOutcomes

这在我这边运行得很好,MacOS:14.0,Xcode:15.0

相关问题