Skip to content

Build macOS Example Embedder failed in Xcode 10 #132

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

Closed
chenyuantao opened this issue Oct 2, 2018 · 6 comments
Closed

Build macOS Example Embedder failed in Xcode 10 #132

chenyuantao opened this issue Oct 2, 2018 · 6 comments

Comments

@chenyuantao
Copy link

Showing Recent Messages
Ld /Users/Tao/Library/Developer/Xcode/DerivedData/Example_Embedder-cyebqnokskymrzftfrnhdolxhaqu/Build/Products/Debug/Example\ Embedder.app/Contents/MacOS/Example\ Embedder normal x86_64 (in target: Example Embedder)
cd /Users/Tao/development/flutter-desktop-embedding/macos/example
export MACOSX_DEPLOYMENT_TARGET=10.13
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -L/Users/Tao/Library/Developer/Xcode/DerivedData/Example_Embedder-cyebqnokskymrzftfrnhdolxhaqu/Build/Products/Debug -F/Users/Tao/Library/Developer/Xcode/DerivedData/Example_Embedder-cyebqnokskymrzftfrnhdolxhaqu/Build/Products/Debug -filelist /Users/Tao/Library/Developer/Xcode/DerivedData/Example_Embedder-cyebqnokskymrzftfrnhdolxhaqu/Build/Intermediates.noindex/Example\ Embedder.build/Debug/Example\ Embedder.build/Objects-normal/x86_64/Example\ Embedder.LinkFileList -Xlinker -rpath -Xlinker @executable_path/../Frameworks -mmacosx-version-min=10.13 -Xlinker -object_path_lto -Xlinker /Users/Tao/Library/Developer/Xcode/DerivedData/Example_Embedder-cyebqnokskymrzftfrnhdolxhaqu/Build/Intermediates.noindex/Example\ Embedder.build/Debug/Example\ Embedder.build/Objects-normal/x86_64/Example\ Embedder_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx -Xlinker -add_ast_path -Xlinker /Users/Tao/Library/Developer/Xcode/DerivedData/Example_Embedder-cyebqnokskymrzftfrnhdolxhaqu/Build/Intermediates.noindex/Example\ Embedder.build/Debug/Example\ Embedder.build/Objects-normal/x86_64/Example_Embedder.swiftmodule /Users/Tao/Library/Developer/Xcode/DerivedData/Example_Embedder-cyebqnokskymrzftfrnhdolxhaqu/Build/Products/Debug/FlutterEmbedderMac.framework/FlutterEmbedderMac -Xlinker -dependency_info -Xlinker /Users/Tao/Library/Developer/Xcode/DerivedData/Example_Embedder-cyebqnokskymrzftfrnhdolxhaqu/Build/Intermediates.noindex/Example\ Embedder.build/Debug/Example\ Embedder.build/Objects-normal/x86_64/Example\ Embedder_dependency_info.dat -o /Users/Tao/Library/Developer/Xcode/DerivedData/Example_Embedder-cyebqnokskymrzftfrnhdolxhaqu/Build/Products/Debug/Example\ Embedder.app/Contents/MacOS/Example\ Embedder

Undefined symbols for architecture x86_64:
"OBJC_CLASS$_FLEColorPanelPlugin", referenced from:
objc-class-ref in ExampleWindow.o
"OBJC_CLASS$_FLEFileChooserPlugin", referenced from:
objc-class-ref in ExampleWindow.o
"OBJC_CLASS$_FLEMenubarPlugin", referenced from:
objc-class-ref in ExampleWindow.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@stuartmorgan-g
Copy link
Collaborator

Is this the first/only build error? Those classes come from frameworks that should have been built by the dependent projects.

@stuartmorgan-g
Copy link
Collaborator

Closing due to lack of response. If you can provide the requested information, I can re-open the bug.

@GregorySech
Copy link

GregorySech commented Oct 30, 2018

This happened to me too, I'm not an xcode expert but I've simply Product > Clean Build Folder and then Product > Build For > Running and it built successfully.

edit: grammar and directions

@stuartmorgan-g
Copy link
Collaborator

Sounds like there must be a dependency issue somewhere. Reopening to investigate.

@kermiedefrog
Copy link

Had the same issue but did the same as GregorySech and things worked nicely ... I did try and compile from an older check out of this code tree, this may have caused some build issues within this latest code where the code has been moved about a bit ..
So as above Product -> Clean Build Folder; Product > Build for > Running ... and then Run Example Embedder and all is good ...
Good project ...

stuartmorgan-g added a commit to stuartmorgan-g/flutter-desktop-embedding that referenced this issue Nov 5, 2018
stuartmorgan-g pushed a commit that referenced this issue Nov 5, 2018
@stuartmorgan-g
Copy link
Collaborator

I believe this is fixed by the PR I just landed. If anyone still sees it after that, please comment!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants