Android Studio Ladybug Flutter iOS Xcode 构建错误

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

无法弄清楚可以做什么,因为所有内容都是通过 Xcode 更新的,并且应用程序是通过 Xcode 更新的,而不是通过 Android Studio

MacOS 15.0.1 颤动:3.24.3 Android Studio 瓢虫 Xcode 16 iOS 18 模拟器

Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/bd/31rc39_j2950dp6y2ycmj2w00000gn/T/flutter_tools.egRRKp/flutter_ios_build_temp_dirUyzp0X/temporary_xcresult_bundle

    /Volumes/Hitesh's Drive/Flutter projects/innerscope/ios/Pods/GTMAppAuth/GTMAppAuth/Sources/AuthSession.swift:297:22: warning: capture of 'request' with non-sendable type 'NSMutableURLRequest' in a
    `@Sendable` closure; this is an error in the Swift 6 language mode
                request: request,
                         ^
    Foundation.NSMutableURLRequest:2:12: note: class 'NSMutableURLRequest' does not conform to the 'Sendable' protocol
    open class NSMutableURLRequest : NSURLRequest {
               ^
    ld: warning: object file (/Volumes/Hitesh's Drive/Flutter projects/innerscope/build/ios/Release-iphoneos/Pods_Runner.framework/Pods_Runner[3](Pods-Runner-dummy.o)) was built for newer 'iOS' version
    (16.0) than being linked (12.0)
    mkdir -p /Volumes/Hitesh's Drive/Flutter projects/innerscope/build/ios/Release-iphoneos/Runner.app/Frameworks
    rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules"
    "/Volumes/Hitesh's Drive/Flutter projects/innerscope/build/ios/Release-iphoneos/AppAuth/AppAuth.framework" "/Volumes/Hitesh's Drive/Flutter
    projects/innerscope/build/ios/Release-iphoneos/Runner.app/Frameworks"
    building file list ... done
    AppAuth.framework/
    AppAuth.framework/AppAuth
    AppAuth.framework/Info.plist
    AppAuth.framework/AppAuthCore_Privacy.bundle/
    AppAuth.framework/AppAuthCore_Privacy.bundle/Info.plist
    AppAuth.framework/AppAuthCore_Privacy.bundle/PrivacyInfo.xcprivacy

    sent 311368 bytes  received 120 bytes  622976.00 bytes/sec
    total size is 310892  speedup is 1.00
    Code Signing /Volumes/Hitesh's Drive/Flutter projects/innerscope/build/ios/Release-iphoneos/Runner.app/Frameworks/AppAuth.framework with Identity Apple Development: [email protected]
    (RJJ9F3WWH9)
    /usr/bin/codesign --force --sign 77636A61464C3680608DB30F7095FB02D0F5237F  --preserve-metadata=identifier,entitlements '/Volumes/Hitesh's Drive/Flutter
    projects/innerscope/build/ios/Release-iphoneos/Runner.app/Frameworks/AppAuth.framework' &
    /Volumes/Hitesh's Drive/Flutter projects/innerscope/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh: eval: line 174: unexpected EOF while looking for matching `''
    Command PhaseScriptExecution failed with a nonzero exit code
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'shared_preferences_foundation' from project 'Pods')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'shared_preferences_foundation-shared_preferences_foundation_privacy' from project
    'Pods')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'google_sign_in_ios-google_sign_in_ios_privacy' from project 'Pods')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'google_sign_in_ios' from project 'Pods')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'Runner' from project 'Runner')
    note: Run script build phase 'Run Script' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Runner' from project
    'Runner')
    note: Run script build phase 'Thin Binary' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Runner' from project
    'Runner')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'Pods-Runner' from project 'Pods')
    /Volumes/Hitesh's Drive/Flutter projects/innerscope/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment
    target versions is 12.0 to 18.0.99. (in target 'GoogleSignIn-GoogleSignIn' from project 'Pods')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'GoogleSignIn-GoogleSignIn' from project 'Pods')
    /Volumes/Hitesh's Drive/Flutter projects/innerscope/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment
    target versions is 12.0 to 18.0.99. (in target 'GoogleSignIn' from project 'Pods')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'GoogleSignIn' from project 'Pods')
    /Volumes/Hitesh's Drive/Flutter projects/innerscope/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment
    target versions is 12.0 to 18.0.99. (in target 'GTMSessionFetcher-GTMSessionFetcher_Full_Privacy' from project 'Pods')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'GTMSessionFetcher-GTMSessionFetcher_Full_Privacy' from project 'Pods')
    /Volumes/Hitesh's Drive/Flutter projects/innerscope/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment
    target versions is 12.0 to 18.0.99. (in target 'GTMSessionFetcher-GTMSessionFetcher_Core_Privacy' from project 'Pods')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'GTMSessionFetcher-GTMSessionFetcher_Core_Privacy' from project 'Pods')
    /Volumes/Hitesh's Drive/Flutter projects/innerscope/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment
    target versions is 12.0 to 18.0.99. (in target 'GTMSessionFetcher' from project 'Pods')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'GTMSessionFetcher' from project 'Pods')
    /Volumes/Hitesh's Drive/Flutter projects/innerscope/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment
    target versions is 12.0 to 18.0.99. (in target 'GTMAppAuth-GTMAppAuth_Privacy' from project 'Pods')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'GTMAppAuth-GTMAppAuth_Privacy' from project 'Pods')
    /Volumes/Hitesh's Drive/Flutter projects/innerscope/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment
    target versions is 12.0 to 18.0.99. (in target 'GTMAppAuth' from project 'Pods')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'GTMAppAuth' from project 'Pods')
    /Volumes/Hitesh's Drive/Flutter projects/innerscope/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment
    target versions is 12.0 to 18.0.99. (in target 'AppAuth-AppAuthCore_Privacy' from project 'Pods')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'AppAuth-AppAuthCore_Privacy' from project 'Pods')
    /Volumes/Hitesh's Drive/Flutter projects/innerscope/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment
    target versions is 12.0 to 18.0.99. (in target 'AppAuth' from project 'Pods')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'AppAuth' from project 'Pods')
    note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'Flutter' from project 'Pods')

尝试过Flutter降级但没有成功。尝试了“flutter clean”、“pod deintegrate”,删除了 Pods 和 Podfile.lock 并再次安装了 pod。得到相同的结果。

flutter simulator xcode16
1个回答
0
投票

要让 android studio 运行 iOS 平台,您应该尝试使用终端通过命令行运行应用程序。 然后切换回Android studio。现在你可以运行了。 记得设置平台目标大于13

© www.soinside.com 2019 - 2024. All rights reserved.