【发布时间】:2022-07-19 17:16:17
【问题描述】:
当我删除 Razorpay 并运行代码时,它工作正常。但是当我安装 Razorpay 时,它会抛出这个错误。即使在 razorpay 集成之后,它以前也可以正常工作,但它突然开始抛出这个错误。我无法通过 vs 代码在 ios Simulator 中运行该应用程序。我能够通过 xcode 在 ios 模拟器中运行我的代码。但现在我无法同时从 vscode 和 xcode 运行我的代码。 这是我的错误日志
Launching lib/main.dart on Adaptabiz's iPad in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: Y2NZK7M69V
Xcode build done. 31.3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/gourav/Desktop/VideoTailorClient app/ios/Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/arm64-apple-ios.swiftinterface:12:8: error: no such module '_Concurrency'
import _Concurrency
^
/Users/gourav/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/razorpay_flutter-1.2.7/ios/Classes/RazorpayDelegate.swift:2:8: error: failed to build module 'Razorpay' from its module interface; the compiler that produced it, 'Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)'
import Razorpay
^
/Users/gourav/Desktop/VideoTailorClient app/ios/Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/arm64-apple-ios.swiftinterface:12:8: error: no such module '_Concurrency'
import _Concurrency
^
/Users/gourav/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/razorpay_flutter-1.2.7/ios/Classes/RazorpayDelegate.swift:2:8: error: failed to build module 'Razorpay' from its module interface; the compiler that produced it, 'Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)'
import Razorpay
^
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FMDB' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'OrderedSet' from project 'Pods')
Could not build the precompiled application for the device.
Error launching application on Adaptabiz's iPad.
Exited (sigterm)
这是颤振医生的结果
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.0, on Mac OS X 10.15.7 19H1417 darwin-x64, locale en-SG)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.63.0)
[✓] Connected device (2 available)
! Error: Adaptabiz's iPad is busy: Copying cache files from device. Xcode will continue when Adaptabiz's iPad is finished. (code -10)
• No issues found!
【问题讨论】:
-
这没有帮助,我仍然遇到同样的错误
-
嗨@Akash Neeli,我们面临着类似的问题。你找到解决办法了吗??
-
是的,这纯粹与您的 Macos、Xcode、Razorpay 版本不兼容有关。但是,我可以在模拟器中运行它而没有任何问题,但不能在设备中运行。我正在使用的版本是 MacOS 10.15.7、Xcode12.4 (12D4e)、Flutter 2.5.0 Stable、razorpay_flutter 的最新版本。如果这个答案仍然没有帮助,请发表评论,我可以给你一个更多的解决方案。请注意,我使用的是颤振。
-
@AkashNeeli 我认为它类似于stackoverflow.com/questions/70484947/…
-
@RaviLimbani,也许..我不确定它是否与架构问题有关..但如果你真的被卡住了,值得一试。
标签: swift xcode flutter cocoapods razorpay