Skip to content

"Made Podfiles use symlinks to local pods" not working #15099

Closed

Description

@burnssun

Steps to Reproduce

set -x

mkdir -p Made_Podfiles_use_symlinks_to_local_pods_NOT_WORKING/
pushd  Made_Podfiles_use_symlinks_to_local_pods_NOT_WORKING/

flutter create -t plugin -i swift --org com.failed failed > /dev/null
pushd failed/example
flutter build ios --debug 
popd

flutter create -t plugin -i swift --org com.success success > /dev/null
pushd success/example
wget -q https://raw.githubusercontent.com/mravn-google/flutter/3723ec0383f79420486bb4ee5acf06ebd190b5cf/packages/flutter_tools/templates/cocoapods/Podfile-swift
cp Podfile-swift ios/Podfile
flutter build ios --debug
popd

popd

Flutter Doctor

➜  ~ flutter doctor -v
[✓] Flutter (Channel master, v0.1.8-pre.43, on Mac OS X 10.13.3 17D102, locale en-KR)
    • Flutter version 0.1.8-pre.43 at /Users/?????/flutter
    • Framework revision fe334e1652 (3 hours ago), 2018-03-02 17:54:51 -0800
    • Engine revision 97b22348c8
    • Dart version 2.0.0-dev.32.0.flutter-ee15c8eb68

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/?????/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = /Users/?????/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.2, Build version 9C40b
    • ios-deploy 1.9.2
    • CocoaPods version 1.3.1

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] IntelliJ IDEA Community Edition (version 2017.3.4)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 22.1.2
    • Dart plugin version 173.4548.30

[✓] VS Code
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.8.0

[✓] Connected devices (1 available)
    • ????????????????????????????????????? • ios • iOS 11.2.6

• No issues found!

Activity

  1. xster commented on Mar 3, 2018

    @xster
    Member

    Can you describe the failure mode? Does flutter build ios throw an error?

    cc @mravn-google

  2. added
    platform-macosBuilding on or for macOS specifically
    p: toolingAffects the flutter_plugin_tools package
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Mar 3, 2018
  3. mravn-google commented on Mar 3, 2018

    @mravn-google
    Contributor

    I can reproduce. This seems to be a problem with Swift projects. I cannot reproduce without the -i swift option.

  4. mravn-google commented on Mar 3, 2018

    @mravn-google
    Contributor

    There is a workaround described here
    A Flutter-centric description is here.

  5. rmtmckenzie commented on Mar 6, 2018

    @rmtmckenzie
    Contributor

    See #15031 for a more lengthy post about this. In particular the part about the pull request I made to cocoapods to fix their issue and the relevant issue. The issue should be reproducible for any project using use_frameworks!.

  6. self-assigned this
    on Mar 12, 2018
  7. mravn-google commented on Mar 12, 2018

    @mravn-google
    Contributor

    To apply the fix in #15437 to a Swift-based Flutter project created before the fix landed, add these lines to ios/Podfile.

  8. burnssun commented on Mar 15, 2018

    @burnssun
    Author

    @mravn-google 👍 #15437 WORKS!!!!

  9. github-actions commented on Sep 1, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  10. locked as resolved and limited conversation to collaborators on Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: toolingAffects the flutter_plugin_tools packageplatform-macosBuilding on or for macOS specificallytoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions