Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot archive an iOS 5.0 era project with RestKit v0.10.3 using Xcode 7.2

I have got an old iOS project which is of iOS 5.0 era. I need to archive it using latest iOS SDK and submit it to App Store.

It consists of an .pbxproj main project which uses RestKit as sub-subproject. Cocoapods is not being used at that era and RestKit is being included as git submodule.

Under Xcode 7.2, it builds and runs perfectly fine, but when it comes to archive, it keeps prompting error message like this:

#import <RestKit/RestKit.h> fails

I have already search RestKit's old documentation and tried using the suggested method, but still not working for me.

I wonder if the Header Search Paths is set wrongly in build settings, it is set as "$(BUILT_PRODUCTS_DIR)/../../Headers" originally.

P.S. I do not wish to upgrade the RestKit version. Minimum support iOS version should be iOS 7.

like image 395
chubao Avatar asked Jan 07 '16 07:01

chubao


1 Answers

Please try to archiving using old Xcode like 5.0 or prior. Since Xcode 7.2 does not support 5.

like image 67
Mahendra Kumar Avatar answered Nov 14 '22 14:11

Mahendra Kumar