Marcel Hofgesang
Marcel Hofgesang

Reputation: 1040

CocoaLumberjack.h file not found?

Actually my project does compile for an iPhone 6s but not for any iOS simulators. When I want to build for a simulator I get two build time errors.
Errors

'CocoaLumberjack/CocoaLumberjack.h' file not found

and

failed to emit precompiled header 
'/DerivedData/Project/Build/Intermediates.noindex/PrecompiledHeaders/Bridging-Header-swift.pch' 
for bridging header 
'/Users/Development/ProjectMobile/Views/Project-Bridging-Header.h'

What have I tried yet?

I am not 100% sure if the paths are correct. And I am wondering that Xcode can't find Cocoalumberjack.h, because I can find it under /Pods/CocoaLumberjack/Sources/CocoaLumberjack/Supporting Files/CocoaLumberjack.h.

Questions
Are these paths probably incorrect?
What else could be the problem?

I am happy for every serious answer!

(1) Framework Search Paths
Framework Search Paths

(2) Header Search paths
Header Search paths

Upvotes: 4

Views: 4286

Answers (1)

Marcel Hofgesang
Marcel Hofgesang

Reputation: 1040

Xcode couldn't build the project for an iOS simulator because there was no valid CPU architecture set for the simulator (respectively for the Mac).

Under Project > Targets > User-Defined > VALID_ARCHS there were just armv7, armv7s and arm64 architectures set.

I added x86_64 architecture to the VALID_ARCHS and it works fine now.

Upvotes: 1

Related Questions