Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

StoreKit Framework "no such File or directory" on import

Im trying to import the StoreKit Framwork.

#import <StoreKit/StoreKit.h>

and in the BuildPhases its also added.

but It gives me an "No such File or Directory" Error.

I tried the iAd Framework to Compare -> Works.

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

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

Which importet me the StoreKit.h File but all the Imports in that File then threw the "No such File" Error.

I Have no idea where else I can look for the Error.

like image 479
Hernd DerBeld Avatar asked Dec 28 '25 21:12

Hernd DerBeld


1 Answers

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

Like the UIKit and foundation frameworks are included into a template project by default so you can use those header files and the goodies they bring, like NSString etc.

like image 163
Antwan van Houdt Avatar answered Dec 30 '25 11:12

Antwan van Houdt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!