VuforiaSampleSwift icon indicating copy to clipboard operation
VuforiaSampleSwift copied to clipboard

Vuforia sdk 8.+ no build

Open djardon opened this issue 6 years ago • 2 comments

I have the same problem.

Error :

/Users/apple/Downloads/VuforiaSampleSwift-master/VuforiaSampleSwift/VuforiaManager/VuforiaEAGLView.h:11:9: error: could not build module 'Vuforia' #import <Vuforia/UIGLViewProtocol.h>

:0: error: failed to emit precompiled header '/Users/apple/Library/Developer/Xcode/DerivedData/VuforiaSampleSwift-dvryxxfoldtndabwrtwxhvibvpbm/Build/Intermediates.noindex/PrecompiledHeaders/VuforiaSampleSwift-Bridging-Header-swift_1224YBKGJ1X1-clang_18DCYIGZG1FMG.pch' for bridging header '/Users/apple/Downloads/VuforiaSampleSwift-master/VuforiaSampleSwift/VuforiaSampleSwift-Bridging-Header.h'

i Set all setting as per comment. I am Using vuforia-sdk-ios-8-5-8 latest version link : https://developer.vuforia.com/downloads/sdk i am also copy Image Targets in my project from vuforia sample project link : https://developer.vuforia.com/downloads/samples

1) Header Path : $(SRCROOT)/VuforiaSampleSwift/vuforia-sdk-ios-8-5-8/build/include 2) Search Path : $(PROJECT_DIR)/VuforiaSampleSwift/vuforia-sdk-ios-8-5-8/build/lib/arm 3) Objective-Bridging Header : VuforiaSampleSwift/VuforiaSampleSwift-Bridging-Header.h

Please let me know if any thing missing.

Originally posted by @DixPatel009 in https://github.com/yshrkt/VuforiaSampleSwift/issues/3#issuecomment-542636430

djardon avatar Feb 10 '20 12:02 djardon

I think that somehow the compiler thinks that the vuforia headers are plain C instead of C++ and spouts errors accordingly. Been looking into that but i'm not familiar enough with the intricacies of xcode to know what to check.

nleclerc avatar Feb 18 '20 17:02 nleclerc

Finally managed to get my project working by removing the Module folder from the framework package. Don't know what it's supposed to do but it works fine without it...

nleclerc avatar Feb 18 '20 18:02 nleclerc