Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restkit/Restkit.h file not found Xcode 6.1

I was working on Project in Xcode 6.1. It was working fine and all of sudden it prompted an error 'Restkit/Restkit.h file not found'. I'm getting error after changing Architectures from $(ARCHS_STANDARD_32_BIT) to Standard architectures (armv7,arm64) - $(ARCHS_STANDARD) which is recommended by Apple Check Link

Screenshot for error

Screenshot for error

I have tried following approaches :

1.'Cleaning' project and rebuilding

2. Checked for missing framework in Target -> Build Phases

3. Fixed 'Framework Search Path' of Target

4. I have build Restkit XcodeProject and Targets separately. It builds without error.

I was getting below error while submitting to App Store and hence changed architecture to 'Standard architecture'

Appstore error

Why did this occur all of sudden? How to fix it?

RestKit Build settings

like image 553
Jayprakash Dubey Avatar asked Nov 17 '14 11:11

Jayprakash Dubey


2 Answers

Just to be here. There is similar issue in newest Xcode 7+. You can observe "RestKit/RestKit.h file not found" failure on archive build. You could compile and run apps on emulator but archive would fail.

To fix this you need to add one line to "Header Search Paths" in Build Settings:

"$(BUILD_DIR)/../IntermediateBuildFilesPath/Headers"

Be sure to include the surrounding quotes.

like image 165
comrade Avatar answered Oct 20 '22 00:10

comrade


You have not properly changed Architecture , if you have done properly than it will show you like this,

Proper Architecture setting:

enter image description here

So again properly change Architecture and try again.

This is your Architecture Setting

enter image description here

like image 32
Naeem Avatar answered Oct 20 '22 01:10

Naeem