Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build on Xcode 16.0 or above #632

Open
Tracked by #641
TaYaKi71751 opened this issue Feb 6, 2025 · 4 comments
Open
Tracked by #641

Cannot build on Xcode 16.0 or above #632

TaYaKi71751 opened this issue Feb 6, 2025 · 4 comments

Comments

@TaYaKi71751
Copy link
Contributor

xcodebuild -version

Xcode 16.1
Build version 16B40
flutter build ios --release --no-codesign
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building xyz.project.violet for device (ios-release)...
Running pod install...                                              7.7s
Running Xcode build...
Xcode build done.                                           20.0s
Failed to build iOS app
Swift Compiler Error (Xcode): Method does not override any method from its superclass
/Users/sh4nt14n/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.8.0/ios/Classes/InAppWebView/InAppWebView.swift:1225:25


Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/sh4nt14n/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.8.0/ios/Classes/InAppWebView/InAppWebView.swift:876:20


Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/sh4nt14n/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.8.0/ios/Classes/InAppWebView/InAppWebView.swift:879:16


Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/sh4nt14n/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.8.0/ios/Classes/InAppWebView/InAppWebView.swift:888:20


Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/sh4nt14n/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.8.0/ios/Classes/InAppWebView/InAppWebView.swift:891:16


Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/sh4nt14n/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.8.0/ios/Classes/InAppWebView/InAppWebView.swift:1121:25


Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/sh4nt14n/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.8.0/ios/Classes/InAppWebView/InAppWebView.swift:1621:8


Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/sh4nt14n/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.8.0/ios/Classes/InAppWebView/InAppWebView.swift:2618:21


Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/sh4nt14n/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.8.0/ios/Classes/InAppWebView/InAppWebView.swift:2833:17


Encountered error while building for device.
@TaYaKi71751
Copy link
Contributor Author

TaYaKi71751 commented Feb 6, 2025

Image on GitHub Actions xcodebuild -version Xcode 15.4 Build version 15F31d

@TaYaKi71751
Copy link
Contributor Author

TaYaKi71751 commented Feb 6, 2025

sh4nt14ns-MacBook-Air:violet sh4nt14n$ git reset --hard HEAD
HEAD is now at 30c5608a Merge pull request #623 from project-violet/sync
sh4nt14ns-MacBook-Air:violet sh4nt14n$ git pull
Already up to date.
sh4nt14ns-MacBook-Air:violet sh4nt14n$ rm ios/Podfile.lock
sh4nt14ns-MacBook-Air:violet sh4nt14n$ xcodebuild -version
Xcode 15.4
Build version 15F31d
sh4nt14ns-MacBook-Air:violet sh4nt14n$ flutter build ios --release --no-codesign
Package open_file:macos references open_file_macos:macos as the default plugin, but the package does not exist, or is not a plugin package.
Ask the maintainers of open_file to either avoid referencing a default implementation via `platforms: macos: default_package: open_file_macos` or create a plugin named open_file_macos.


Package open_file:macos references open_file_macos:macos as the default plugin, but the package does not exist, or is not a plugin package.
Ask the maintainers of open_file to either avoid referencing a default implementation via `platforms: macos: default_package: open_file_macos` or create a plugin named open_file_macos.


Package open_file:macos references open_file_macos:macos as the default plugin, but the package does not exist, or is not a plugin package.
Ask the maintainers of open_file to either avoid referencing a default implementation via `platforms: macos: default_package: open_file_macos` or create a plugin named open_file_macos.


Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building xyz.project.violet for device (ios-release)...
Upgrading AppFrameworkInfo.plist
Upgrading Podfile
Updating project for Xcode compatibility.
Upgrading project.pbxproj
Upgrading Runner.xcscheme
ios/Runner/AppDelegate.swift uses the deprecated @UIApplicationMain attribute, updating.
.gitignore does not ignore Swift Package Manager build directories, updating.
Package open_file:macos references open_file_macos:macos as the default plugin, but the package does not exist, or is not a plugin package.
Ask the maintainers of open_file to either avoid referencing a default implementation via `platforms: macos: default_package: open_file_macos` or create a plugin named open_file_macos.


Running pod install...                                              5.2s
Running Xcode build...
 └─Compiling, linking and signing...                         5.7s
Xcode build done.                                           17.8s
Failed to build iOS app
════════════════════════════════════════════════════════════════════════════════
Building a deployable iOS app requires a selected Development Team with a
Provisioning Profile. Please ensure that a Development Team is selected by:
  1- Open the Flutter project's Xcode target with
       open ios/Runner.xcworkspace
  2- Select the 'Runner' project in the navigator then the 'Runner' target
     in the project settings
  3- Make sure a 'Development Team' is selected under Signing & Capabilities > Team.
     You may need to:
         - Log in with your Apple ID in Xcode first
         - Ensure you have a valid unique Bundle ID
         - Register your device with your Apple Developer Account
         - Let Xcode automatically provision a profile for your app
  4- Build or run your project again

For more information, please visit:
  https://flutter.dev/to/ios-development-team

Or run on an iOS simulator without code signing
════════════════════════════════════════════════════════════════════════════════
Encountered error while building for device.

@TaYaKi71751
Copy link
Contributor Author

GitHub Actions was 14.7.2
mine was 15.3

Image

@TaYaKi71751
Copy link
Contributor Author

TaYaKi71751 commented Feb 7, 2025

GitHub Actions with macos-15 caused error

Image Image

TaYaKi71751 added a commit to TaYaKi71751/violet that referenced this issue Feb 10, 2025
@TaYaKi71751 TaYaKi71751 mentioned this issue Feb 10, 2025
1 task
@TaYaKi71751 TaYaKi71751 changed the title Cannot build on Xcode 16.1 Build version 16B40 Cannot build on Xcode 16.0 or above Feb 10, 2025
TaYaKi71751 added a commit to TaYaKi71751/violet that referenced this issue Feb 10, 2025
TaYaKi71751 added a commit to TaYaKi71751/violet that referenced this issue Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant