Hi all I'm getting the following errors when trying to build my app: #import <UIKit/UIKit.h> @class RootViewController; @interface AppController : NSObject < UIApplicationDelegate> { UIWindow *window; RootViewController *viewController; } @property (nonatomic, readonly)UIWindow* window; <-- This one gives error! @property (nonatomic, readonly) RootViewController *viewController; - (void)loadingDidComplete; - (void)showCustomFullscreenAd; @end Also CCPlatformDefine.h is missing. How do i add this? -Aleksi
What version of Xcode? What iOS version are you building for? What Device are you trying to test on? Have you changed or added any sdk's ? More info will get more help.
Xcode version 7.3.1 Trying to build for iOS 10.2 and test on iPhone 6s I haven't done a single edit to SDK's after exporting from buildbox. I played around a little bit with the iOS versions and the error seems to be gone, figures... Now it's only missing the CCPlatformDefine.h in CCPlatformMacros.h. It is defined in there but says that file not found. How do I get around this? Thanks for the help!
Use Xcode 8 (I believe 8.3.3 is the latest). And don't change anything at all. See if you get any errors.
Got bunch of different issues now: - Semantic issue in appcontroller.h: Attribute 'readonly' of property 'window' restricts attribute 'readwrite' of property inherited from 'UIApplicationDelegate' - Semantic issue in appcontroller.h: 'retain (or strong)' attribute on property 'window' does not match the property inherited from 'UIApplicationDelegate' Also deprecations in appcontroller.mm: - 'wantsFullScreenLayout' is deprecated: first deprecated in iOS 7.0 And one unused entity issue in PTPConfig.h: - Unused function 'PTLog'
Ignore yellow warnings. They are not holding you back. Just red errors if any (there should not be any) need to be addressed.
For some reason I had to use general device to be able to archive. Thanks all for your help! It's working now.