googlevr / gvr-ios-sdk

Google VR SDK for iOS
http://developers.google.com/vr/ios/
Other
645 stars 191 forks source link

In Xcode Version 8.3 (8E162) clang: error: linker command failed with exit code 1 (use -v to see invocation) #229

Closed boluobanana closed 7 years ago

boluobanana commented 7 years ago

Hi, I clone the project and run pod update in terminal to add the CardboardSDK CocoaPod in VideoWidgetDemo project. Then I try to run the VideoWidgetDemo project in Xcode, I get an issues

ld: warning: directory not found for option '-L/Users/username/Library/Developer/Xcode/DerivedData/VideoWidgetDemo-afiqijliusxrirdgqpltgejdxhwp/Build/Products/Debug-iphoneos/GTMSessionFetcher'

ld: warning: directory not found for option '-L/Users/username/Library/Developer/Xcode/DerivedData/VideoWidgetDemo-afiqijliusxrirdgqpltgejdxhwp/Build/Products/Debug-iphoneos/GoogleToolboxForMac'

Apple Mach-O Linker (ld) Error Group clang: error: linker command failed with exit code 1 (use -v to see invocation)

But last time I opened the project in Version 7.x(i forget the version) Xcode. I didn't get this issues. Can anybody help me?

Thank you !

jonflanders commented 7 years ago

you have to run "pod install" to install the SDK - but then you will get another compiler error that I have already reported.

boluobanana commented 7 years ago

Hi @jonflanders, I solved my issue from stackoverflow I didn't notice the line

[!] Please close any current Xcode sessions and use VideoWidgetDemo.xcworkspace for this project from now on

I still opened the VideoWidgetDemo.xcodeproj by mistake.

So, I opened the VideoWidgetDemo.xcworkspace and it worked fine.