Flutter iOS build failed an error of pod files: Podfile is out of date

前端 未结 8 585
猫巷女王i
猫巷女王i 2021-01-07 18:48

I\'m trying to build my app on the ios simulator(ios 13), but the build fails and gives an error of pod files: Podfile is out of date

This is the error.



        
8条回答
  •  南方客
    南方客 (楼主)
    2021-01-07 19:45

    Just in case, if someone runs into a problem similar to this output after updating the Podfile:

      ld: framework not found intent
        clang: error: linker command failed with exit code 1 (use -v to see invocation)
        note: Using new build system
        note: Building targets in parallel
        note: Planning build
        note: Constructing build description
    

    You can try this:

    1. Go to Xcode Select your target.
    2. Go to Build Settings.
    3. Search the package name shown in the error. e. g. : framework not found intent.
    4. You will see that there is a section like: "Linking"->"Other linker flags" ,then click the bold part of this row.
    5. It will open a dialog box where you can remove the framework not found.
    6. When removing the framework name, also remove the "-framework" tag.

    This may be related to packages that only work in Android.

提交回复
热议问题