I’m using the cocoapods gradle plugin, 1.4.0-rc. I took the kotlin-with-cocapods-sample library, added in my own source code and podspec file. When I sync the project, the build fails when
xcodebuild -project Pods.xcodeproj -scheme Boulangerie-iOS -sdk iphoneos -configuration Release
is executed. It’s not finding all the header files. Error: “fatal error: ‘com/dough/profitability/calculation/Zoner.h’ file not found”.
Relevant part of the podspec:
s.preserve_paths = "ios/src"
s.header_mappings_dir = "ios/src/objc"
s.public_header_files = "ios/src/objc/**/*.h"
s.source_files = "ios/src/objc/**/*.{h,m}"
s.resources = 'ios/src/resources/**/*'
s.dependency 'J2Objc', '~> 2.6'
s.dependency 'AFNetworking', '~> 4.0.1'
s.xcconfig = {
'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/Headers/Private/Boulangerie-iOS"/**'
}
Anyone know how I can get this to work?