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

[Compile]: share_plus failed to build iOS on GitHub action #3090

Open
8 tasks done
dzitcon2002 opened this issue Jul 17, 2024 · 2 comments
Open
8 tasks done

[Compile]: share_plus failed to build iOS on GitHub action #3090

dzitcon2002 opened this issue Jul 17, 2024 · 2 comments
Labels
bug Something isn't working triage

Comments

@dzitcon2002
Copy link

dzitcon2002 commented Jul 17, 2024

Platform

iOS build on GitHub action

Plugin

Share_plus

Version

9.0.0

Flutter SDK

3.19.5

Steps to reproduce

Add share_plus dependenci, then run github action

Code Sample

name: PR Check

# Controls when the workflow will run
on:
  pull_request:
    branches:
      - dev
    types:
      - opened
      - edited
      - reopened
      - synchronize

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  ios_validation:
    name: 'iOS validation'
    runs-on: macos-latest
    concurrency:
      cancel-in-progress: true
      group: ${{ github.event.pull_request.number || github.event.pull_request_target.number || github.ref }}
    needs: validation
    steps:
    - uses: actions/checkout@v2
      with:
        ref: ${{ github.event.pull_request_target.head.ref || github.event.pull_request.head.ref }}
        repository: ${{ github.event.pull_request_target.head.repo.full_name || github.event.pull_request.head.repo.full_name}}
        fetch-depth: 0
    - name: Install Flutter
      uses: subosito/flutter-action@v2.8.0
      with:
        flutter-version: '3.19.5'
        channel: 'stable'
    - name: setup XCode
      uses: maxim-lobanov/setup-xcode@v1
      with:
        xcode-version: 15.4
    - name: setup Cocoapod
      uses: maxim-lobanov/setup-cocoapods@v1
      with:
        version: 1.13.0
    - name: Check machine setup
      run : |
        flutter doctor
        cd ios
        pod --version
        cd -
    - name: build iOS no codesign
      run: |
        flutter pub get


### Logs

```shell
Resolving dependencies...
  _fe_analyzer_shared 61.0.0 (73.0.0 available)
  _flutterfire_internals 1.3.32 (1.3.39 available)
  analyzer 5.13.0 (6.8.0 available)
  archive 3.4.6 (3.6.1 available)
  args 2.4.2 (2.5.0 available)
  bloc 8.1.2 (8.1.4 available)
  bloc_test 9.1.5 (9.1.7 available)
  build 2.3.1 (2.4.1 available)
  build_daemon 4.0.1 (4.0.2 available)
  build_resolvers 2.4.1 (2.4.2 available)
  build_runner 2.4.6 (2.4.11 available)
  build_runner_core 7.2.7+1 (7.3.1 available)
  built_value 8.6.3 (8.9.2 available)
  cached_network_image 3.3.0 (3.3.1 available)
  cached_network_image_platform_interface 3.0.0 (4.0.0 available)
  cached_network_image_web 1.1.0 (1.2.0 available)
  camera 0.10.5+5 (0.11.0+1 available)
  camera_android 0.10.8+12 (0.10.9+8 available)
  camera_avfoundation 0.9.13+6 (0.9.17 available)
  camera_web 0.3.2+3 (0.3.4 available)
  cli_util 0.3.5 (0.4.1 available)
  cloud_firestore 4.16.0 (5.1.0 available)
  cloud_firestore_platform_interface 6.1.12 (6.2.9 available)
  cloud_firestore_web 3.11.0 (4.0.3 available)
  code_builder 4.7.0 (4.10.0 available)
  collection 1.18.0 (1.19.0 available)
  connectivity_plus 6.0.1 (6.0.3 available)
  coverage 1.7.2 (1.8.0 available)
  cross_file 0.3.3+6 (0.3.4+1 available)
  csslib 0.17.3 (1.0.0 available)
  cupertino_icons 1.0.6 (1.0.8 available)
  dart_quill_delta 9.3.6 (9.5.23 available)
  dart_style 2.3.2 (2.3.6 available)
  dbus 0.7.8 (0.7.10 available)
  device_info_plus 10.0.1 (10.1.0 available)
  http_parser 4.0.2 (4.1.0 available)
  intl 0.18.1 (0.19.0 available)
  intl_utils 2.8.5 (2.8.7 available)
  js 0.6.7 (0.7.1 available)
  leak_tracker 10.0.0 (10.0.5 available)
  leak_tracker_flutter_testing 2.0.1 (3.0.5 available)
  leak_tracker_testing 2.0.1 (3.0.1 available)
  lints 3.0.0 (4.0.0 available)
  material_color_utilities 0.8.0 (0.12.0 available)
  meta 1.11.0 (1.[15](https://github.com/dzitcon2002/ptoj23/actions/runs/9977111018/job/27572055836?pr=194#step:8:16).0 available)
  mockito 5.4.2 (5.4.4 available)
  path_provider 2.1.1 (2.1.3 available)
  path_provider_android 2.2.0 (2.2.7 available)
  path_provider_foundation 2.3.1 (2.4.0 available)
  path_provider_platform_interface 2.1.1 (2.1.2 available)
  path_provider_windows 2.2.1 (2.3.0 available)
  petitparser 5.4.0 (6.0.2 available)
  platform 3.1.3 (3.1.5 available)
  plugin_platform_interface 2.1.6 (2.1.8 available)
  pointycastle 3.7.3 (3.9.1 available)
  rxdart 0.27.7 (0.28.0 available)
  simple_gesture_detector 0.2.0 (0.2.1 available)
  source_gen 1.4.0 (1.5.0 available)
  sqflite 2.3.0 (2.3.3+1 available)
  sqflite_common 2.5.0+1 (2.5.4 available)
  string_scanner 1.2.0 (1.3.0 available)
  synchronized 3.1.0 (3.1.0+1 available)
  table_calendar 3.0.9 (3.1.2 available)
  test_api 0.6.1 (0.7.3 available)
  uuid 4.2.1 (4.4.2 available)
  vector_graphics 1.1.9+1 (1.1.11+1 available)
  vector_graphics_codec 1.1.9+1 (1.1.11+1 available)
  vector_graphics_compiler 1.1.9+1 (1.1.11+1 available)
  video_player 2.8.6 (2.9.1 available)
  video_player_android 2.4.14 (2.5.2 available)
  video_player_avfoundation 2.5.7 (2.6.1 available)
  video_player_platform_interface 6.2.1 (6.2.2 available)
  video_player_web 2.3.0 (2.3.1 available)
  vm_service 13.0.0 (14.2.4 available)
  web 0.5.1 (1.0.0 available)
  win32 5.0.9 (5.5.1 available)
  xdg_directories 1.0.3 (1.0.4 available)
  xml 6.3.0 (6.5.0 available)
Got dependencies!
61 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
/Users/runner/work/ptoj23/ptoj23
/Users/runner/work/ptoj23/ptoj23

Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Archiving com.dzit.ptoj23...
Running pod install...                                            [23](https://github.com/dzitcon2002/ptoj23/actions/runs/9977111018/job/27572055836?pr=194#step:8:24)0.8s
Running Xcode build...                                          
Xcode archive done.                                         131.4s
Failed to build iOS app
Error (Xcode): could not compile `time` (lib) due to 1 previous error
/Users/runner/work/ptoj23/ptoj23/ios/Pods/SEVERE:0:0

Flutter Doctor

Run flutter doctor

  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.dev                  ║
  ║                                                                            ║
  ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
  ║ statistics and basic crash reports. This data is used to help improve      ║
  ║ Flutter tools over time.                                                   ║
  ║                                                                            ║
  ║ Flutter tool analytics are not sent on the very first run. To disable      ║
  ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
  ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
  ║ event will be sent, and then no further information will be sent by the    ║
  ║ Flutter tool.                                                              ║
  ║                                                                            ║
  ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
  ║ The Google Privacy Policy describes how data is handled in this service.   ║
  ║                                                                            ║
  ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
  ║ crash reports to Google.                                                   ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://flutter.dev/docs/reference/crash-reporting                         ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://policies.google.com/privacy                                        ║
  ║                                                                            ║
  ║ To disable animations in this tool, use                                    ║
'flutter config --no-cli-animations'.                                      ║
  ╚════════════════════════════════════════════════════════════════════════════╝

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.5, on Ubuntu 22.04.4 LTS 6.5.0-1023-azure, locale C.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] Connected device (2 available)
[✓] Network resources

! Doctor found issues in 1 categories.

Checklist before submitting a bug

  • I searched issues in this repository and couldn't find such bug/problem
  • I Google'd a solution and I couldn't find it
  • I searched on StackOverflow for a solution and I couldn't find it
  • I read the README.md file of the plugin
  • I'm using the latest version of the plugin
  • All dependencies are up to date with flutter pub upgrade
  • I did a flutter clean
  • I tried running the example project
@dzitcon2002 dzitcon2002 added bug Something isn't working triage labels Jul 17, 2024
@miquelbeltran
Copy link
Member

There is a "Compile Issue" template for these type of issues: https://github.com/fluttercommunity/plus_plugins/issues/new?assignees=&labels=compile%2Ctriage&projects=&template=COMPILATION.yaml&title=%5BCompile%5D%3A+

Also, your log doesn't provide any error information besides "Failed to build iOS app".

@dzitcon2002 dzitcon2002 changed the title [Bug]: share_plus failed to build iOS on GitHub action [Compile]: share_plus failed to build iOS on GitHub action Jul 17, 2024
@dzitcon2002
Copy link
Author

added more log for iOS build, and that's all I have, there's no error in the log either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants