question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No such module 'location' when building on macos

See original GitHub issue

`gintas-mac:mapphotos gintas$ flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel master, v1.18.0-6.0.pre.106, on Mac OS X 10.15.4 19E287, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 11.4.1) [✓] Chrome - develop for the web [✓] Android Studio (version 3.6) [!] VS Code (version 1.43.2) ✗ Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [✓] Connected device (3 available)

! Doctor found issues in 1 category.`

Trying to build on macos with location: 3.0.2 but I get this error:

` Launching lib/main.dart on macOS in debug mode… Running pod install… 8.1s Building macOS application… ** BUILD FAILED **

The following build commands failed: CompileSwift normal x86_64 /Users/gintas/Documents/AppProjects/mapphotos/macos/Runner/MainFlutterWindow.swift CompileSwift normal x86_64 /Users/gintas/Documents/AppProjects/mapphotos/macos/Runner/AppDelegate.swift CompileSwift normal x86_64 /Users/gintas/Documents/AppProjects/mapphotos/macos/Flutter/GeneratedPluginRegistrant.swift CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (4 failures) Exception: Build process failed `

image

full pubspec.yaml here: https://pastebin.com/RhCtc0LV

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

5reactions
DavBfrcommented, May 11, 2020

The symlink trick is not working, you have to copy the .m file from ios to macos. Try:

cp ~/.pub-cache/hosted/pub.dartlang.org/location-3.0.2/ios/Classes/*.m ~/.pub-cache/hosted/pub.dartlang.org/location-3.0.2/macos/Classes/

Then run flutter clean

0reactions
radvansky-tomascommented, Dec 20, 2020

Still nothing ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting error "No such module" using Xcode, but the ...
I have an xcworkspace with a framework project and an app project. The problem was that in the Archive scheme for my app,...
Read more >
Xcode 12.0.1 "No such module" | Apple Developer Forums
Alternative method (worked for XCode 12.4): Add arm64 under Excluded Architectures. Build Settings > Architectures > Excluded Architectures > Debug > Select " ......
Read more >
No such module 'location' in macos · Issue #499 - GitHub
While I am trying to run the app in macos, not able to build the desktop app. below error : Launching lib/main.dart on...
Read more >
No Such Module 'OrderedCollections' - Swift Forums
The first time you build the project, it may show something like packages are not supported in legacy mode. You can just go...
Read more >
Oh dear! Build errors? - LoopDocs - GitHub Pages
Solution: Go to your Xcode -> Preferences (or Settings) and under the Locations tab, select your Xcode version (the figure shows 14.0.1 -...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found