Reputation: 135
I'm archiving an iOS app through jenkins as a part of continuous integration process using xcode as a build tool. we have three frameworks integrated with the app. everything is working fine but suddenly i'm getting the below issue while building in jenkins.
Bridging-Header.h:25:9: error: 'xxx/xxy.h' file not found
import xxx/xxy.h
error: failed to import bridging header '/xxxx/xxxx/xxxx/xxxxxx_App-Bridging-Header.h'
** BUILD FAILED *****
when i build separately in xcode(7.3.1) Build succeeds but through jenkins it fails with above error.
Upvotes: 0
Views: 2828
Reputation: 123
There is a bug in xcode which it doesn't fill out the "SWIFT_OBJC_BRIDGING_HEADER[arch=*]" so open project.pbxproj in a text editor find that field and make sure that the bridging header is set then it should work!
Upvotes: 0
Reputation: 135
Thanks for the support. I solved it myself and the workaround is to add the defined framework under the target dependencies and also need to add the path inherited in the framework search path at project level because jenkins always checks as an initiality while importing xcode for build generation.
Upvotes: 1
Reputation: 23407
You get an error :
failed to import bridging header '/Users/MyName/Desktop/AppleDemo123/AppleDemo-Bridging-Header.h'
Solution:
You check all import file in your bridge header file, You are removed file in your project, But it it already import in bridge header file.
Removed the import file from Bridging-Header.h
file.
Upvotes: 0