Skip to content
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

Getting error "clang: error: linker command failed with exit code 1 (use -v to see invocation)" #4

Open
jos3neto opened this issue Jan 16, 2019 · 2 comments

Comments

@jos3neto
Copy link

jos3neto commented Jan 16, 2019

Hello

I'm building a custom Flic app in Xcode 10.1 with Swift 4.
When building, I get this error:

"Ld /Users/jose/Library/Developer/Xcode/DerivedData/FlicTrick-enxfkdrdezuxejfdetakmqjzxmua/Build/Products/Debug-iphonesimulator/FlicTrick.app/FlicTrick normal x86_64 (in target: FlicTrick)" and

"clang: error: linker command failed with exit code 1 (use -v to see invocation)"

I managed to isolate the error to this method in AppDelegate:

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool
	{
		guard let backToFlicTrick = SCLFlicManager.shared()?.handleOpen(url) else
		{ return false }
		
		return backToFlicTrick
	} 

But don't know how to fix it.

My plist files looks exactly like the tutorial and ios-boilerplate-swift.

I cloned ios-boilerplate-swift and it gives the same error.

Any ideas?

Thanks, Jose.

@jos3neto
Copy link
Author

My app gives me the bug because it fails to link with the Flic app, when developing with the simulator.
The custom app doesn't even build for the simulator. Even importing

#import "../fliclib-ios/simulator-wrapper/fliclibWrapper.h"

@oskob
Copy link
Collaborator

oskob commented Jan 18, 2019

Hi!

It seems some files were missing, I updated the repo to include these files in the xcode project so either pull down the latest changes or add the "simulator-wrapper" folder to your xcode project and it should work fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants