14.5 C
New York
Sunday, March 16, 2025

Drawback with construct Flutter as ios-framework on Xcode 16


I’ve a undertaking in Flutter with few Views witch are append to native app.
Earlier than replace OS and xcode I constructed on xcode 15 and large sur and works wonderful. After replace to os model sequoia and xcode 16.2 the enjoyable has begun. I as soon as managed to create a working configuration in Runner.xcproj for a pod, however after updating the repository and reloading the libraries I misplaced every thing.

Flutter physician:

[✓] Flutter (Channel secure, 3.29.2, on macOS 15.3.2 24D81 darwin-arm64, locale pl-PL) [441ms]
    • Flutter model 3.29.2 on channel secure at /Customers/Person/Paperwork/DEVEL/flutter-sdk
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c236373904 (3 days in the past), 2025-03-13 16:17:06 -0400
    • Engine revision 18b71d647a
    • Dart model 3.7.2
    • DevTools model 2.42.3

[✓] Android toolchain - develop for Android units (Android SDK model 33.0.1) [1 303ms]
    • Android SDK at /Customers/Person/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: /Functions/Android Studio.app/Contents/jbr/Contents/Dwelling/bin/java
      That is the JDK bundled with the newest Android Studio set up on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java model OpenJDK Runtime Setting (construct 21.0.4+-12422083-b607.1)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [796ms]
    • Xcode at /Functions/Xcode.app/Contents/Developer
    • Construct 16C5032a
    • CocoaPods model 1.16.2

[✓] Android Studio (model 2024.2) [11ms]
    • Android Studio at /Functions/Android Studio.app/Contents
    • Flutter plugin will be put in from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin will be put in from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java model OpenJDK Runtime Setting (construct 21.0.4+-12422083-b607.1)

Flutter libs with issues:

- sentry_flutter: 8.14.0
- file_selector: 1.0.3

Once I name flutter construct ios-framework --cocoapods I recieve errors, often from sentry and file selector. But when I construct undertaking in xcode (Runner.xcproj) on my iphone, works wonderful. (with success).
I attempted with totally different flutter variations, sentry variations, with eliminated sentry (file_selector was related error). ChatGPT and gemini did not assist.

[  +27 ms] Unable to construct plugin frameworks: ** BUILD FAILED **
           
           
           The next construct instructions failed:
                CompileC /Customers/Person/Paperwork/DEVEL/flutter/cell/construct/ios/framework/Debug/iphoneos/Pods.construct/Debug-iphoneos/Sentry.construct/Objects-normal/arm64/SentryThreadHandle.o /Customers/Person/Paperwork/DEVEL/flutter/cell/.ios/Pods/Sentry/Sources/Sentry/SentryThreadHandle.cpp regular arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in goal 'Sentry' from undertaking 'Pods')
           (1 failure)
           
[   +1 ms] 
           #0      throwToolExit (bundle:flutter_tools/src/base/widespread.dart:34:3)
           #1      BuildIOSFrameworkCommand._producePlugins (bundle:flutter_tools/src/instructions/build_ios_framework.dart:550:9)
           
           #2      BuildIOSFrameworkCommand.runCommand (bundle:flutter_tools/src/instructions/build_ios_framework.dart:292:9)
           
           #3      FlutterCommand.run. (bundle:flutter_tools/src/runner/flutter_command.dart:1558:27)
           
           #4      AppContext.run. (bundle:flutter_tools/src/base/context.dart:154:19)
           
           #5      CommandRunner.runCommand (bundle:args/command_runner.dart:212:13)
           
           #6      FlutterCommandRunner.runCommand. (bundle:flutter_tools/src/runner/flutter_command_runner.dart:496:9)
           
           #7      AppContext.run. (bundle:flutter_tools/src/base/context.dart:154:19)
           
           #8      FlutterCommandRunner.runCommand (bundle:flutter_tools/src/runner/flutter_command_runner.dart:431:5)
           
           #9      run.. (bundle:flutter_tools/runner.dart:98:11)
           
           #10     AppContext.run. (bundle:flutter_tools/src/base/context.dart:154:19)
           
           #11     most important (bundle:flutter_tools/executable.dart:99:3)
           

or

url_launcher_ios.construct/DerivedSources/url_launcher_ios_vers.c regular arm64 c
                com.apple.compilers.llvm.clang.1_0.compiler (in goal 'url_launcher_ios' from undertaking 'Pods')

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles