I am trying to distribute my module, but I have problems with checking it.
When I try to impose my .podspec, I get:
- ERROR | [iOS] [xcodebuild] path/to/my/source/file.m:14:9: fatal error: 'KeyValueObjectMapping/DCKeyValueObjectMapping.h' file not found
I tried to keep the path to my structure with various options, for example
s.preserve_paths = 'KeyValueObjectMapping.framework/*'
or
s.preserve_paths = '${PODS_ROOT}/Vendor/KeyValueObjectMapping/KeyValueObjectMapping.framework'
& other options, but this way I get another error:
- ERROR | [iOS] The `preserve_paths` pattern did not match any file.
I also tried other things that I saw on other issues, for example:
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/Vendor/KeyValueObjectMapping/KeyValueObjectMapping.framework"','FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/Vendor/KeyValueObjectMapping/*"' } s.framework = 'KeyValueObjectMapping'
The project builds fine with Xcode5 and with xcodebuild with its default setting, I only get this problem when checking it for Cocoapods.
ios objective-c cocoapods xcodebuild
Kex
source share