2

after two week... I successed upload xcode and catalina OS , zsh ... all could be good but have always error and can't launch my app on my physical device or simulator. Always error after Xcode build.

Things interesting, I remove App_review package from pubspec.yaml but I have always error with it... If I launch flutter example it works, but If I use certain package like admob who worked before, or app review I have this errors. I can remove app_review package but remove ad mob no...

Edit: I remove all packages who show error, but have always this error Here is my physical device error :

Xcode's output:
↳
   
    ld: framework not found FBLPromises
    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

Here is the error when I use simulator :

Xcode's output:
↳
    ld: framework not found FBLPromises
    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
    warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'in_app_purchase' from project 'Pods')
    warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'in_app_purchase' from project 'Pods')
    warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')
    warning: Mapping architecture armv7s to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')
    warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'Runner' from project 'Runner')
Nitneuq
  • 3,866
  • 13
  • 41
  • 64
  • I've had a similar issue and I couldn't get out from it. I moved to Flutter's beta channel, downloaded the SDK and then came back to master. After a flutter clear, it worked like a charm – Alberto Miola Jul 06 '20 at 07:32
  • It's hard to identify the exact issue from flutter log. Try running the app via Xcode and you will get a clear and precious error message. – Aawaz Gyawali Jul 06 '20 at 07:39
  • Aawaz Gyawali I have remove all packages, that remove somes issues but have this last => https://stackoverflow.com/questions/62742292/how-to-fixe-xcode-build-error-fblpromises – Nitneuq Jul 06 '20 at 07:46
  • Try this, create a new project using the same package in a different directory in FLutter and copy all the .dart files and .yaml to the new project and then try to open the new project in Xcode and run it, – Umer Waqas - Top rated dev Jul 09 '20 at 17:38
  • Yes currently it’s work when i create a new projet with my old flutter file ( without 3 package who make problemes ( app_review/ audioplayeur/ad_mob) but it’s not very important i can do without it) but i don’t understant where is the probleme with my projet – Nitneuq Jul 09 '20 at 19:33
  • Maybe [this](https://stackoverflow.com/a/62054777/13625305) – dev-aentgs Jul 11 '20 at 10:24

3 Answers3

2

Open Runner.xcodeproj with xCode in ios folder, choose File menu, then select "Project Settings...". In Build System, choose Legacy Build System and run again.

Jim
  • 6,928
  • 1
  • 7
  • 18
2

I have select legacy build system , now I have this last error

  === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    ld: framework not found FBLPromises
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
Nitneuq
  • 3,866
  • 13
  • 41
  • 64
  • trye this, https://github.com/flutter/flutter/issues/43591 – Jim Jul 08 '20 at 04:14
  • I try but I'm not exactly in this case, my Xcode is 11.5 and build phase change, so I have flutter.firwmware for example. I change also my flutter version with last version , but have some trouble with packages. After flutter package get, All my package become red, like not loaded ... so impossible to build xcode. – Nitneuq Jul 08 '20 at 12:34
2

Please see this thread and ensure that you are not accidentally overriding the VALID_ARCHS build setting: What does warning "Mapping architecture arm64 to x86_64" mean?

Lewis
  • 4,285
  • 1
  • 23
  • 36