as well a...">

StoreKit Framework "no such file or directory" upon import

I am trying to import Framek StoreKit.

#import <StoreKit/StoreKit.h>

as well as in BuildPhases.

but it gives me the error "There is no such file or directory."

I tried iAd Framework to compare -> Works.

I tried a new project and added StoreKit Framework -> Works.

I tried #import "/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.h"

Which one imports the StoreKit.h file, but all the Imports in this file then threw a "No such file" error.

I do not know where else I can find the error.

+3
source share
3 answers

You need to add a framework to your project before you can import any header files that are inside the frame.

UIKit , , , , , NSString ..

+1

. StoreKit , " ".

, Xcode 4. ​​ Xcode SDK iOS?

+1

,

#import "/Developer/Plat..."

You need to enable the framework as a framework in your assembly, and not try to reference local files that exist only on your drive. If you compile something with absolute paths, this will lead to the fact that applications will only work on your computer, and not on any devices or other devices.

+1
source

All Articles