Appcontroller.h Build Error

Discussion in 'Technical Discussion' started by Fyricha, Nov 5, 2017.

  1. Fyricha

    Fyricha Boxer

    Joined:
    Nov 29, 2016
    Messages:
    8
    Likes Received:
    1
    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
     
  2. Fyricha

    Fyricha Boxer

    Joined:
    Nov 29, 2016
    Messages:
    8
    Likes Received:
    1
    Anyone?
     
  3. adrogdesigns

    adrogdesigns Avid Boxer

    Joined:
    Dec 5, 2016
    Messages:
    318
    Likes Received:
    233
    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.
     
    Christoph and Fyricha like this.
  4. Fyricha

    Fyricha Boxer

    Joined:
    Nov 29, 2016
    Messages:
    8
    Likes Received:
    1
    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!
     
  5. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Use XCode 8.2
     
    Christoph likes this.
  6. Fyricha

    Fyricha Boxer

    Joined:
    Nov 29, 2016
    Messages:
    8
    Likes Received:
    1
    Still saying "CCPlatformDefine.h file not found"
     
  7. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    Use Xcode 8 (I believe 8.3.3 is the latest). And don't change anything at all. See if you get any errors.
     
    AaroArts likes this.
  8. Fyricha

    Fyricha Boxer

    Joined:
    Nov 29, 2016
    Messages:
    8
    Likes Received:
    1
    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'
     
  9. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    Ignore yellow warnings. They are not holding you back. Just red errors if any (there should not be any) need to be addressed.
     
  10. Fyricha

    Fyricha Boxer

    Joined:
    Nov 29, 2016
    Messages:
    8
    Likes Received:
    1
    For some reason I had to use general device to be able to archive. Thanks all for your help! It's working now.
     

Share This Page