Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[SOLVED] 2017.2 Missing UNITY_PURCHASING define when building using command-line for CI

Discussion in 'Unity IAP' started by maxthecat, Oct 14, 2017.

Thread Status:
Not open for further replies.
  1. maxthecat

    maxthecat

    Joined:
    May 26, 2014
    Posts:
    29
    The following is the log output when doing a CI build.

    When using 2017.1

    [13:08:09] : [BuildUnityProject] -define:UNITY_5_3_OR_NEWER
    [13:08:09] : [BuildUnityProject] -define:UNITY_5_4_OR_NEWER
    [13:08:09] : [BuildUnityProject] -define:UNITY_5_5_OR_NEWER
    [13:08:09] : [BuildUnityProject] -define:UNITY_5_6_OR_NEWER
    [13:08:09] : [BuildUnityProject] -define:UNITY_2017_1_OR_NEWER
    [13:08:09] : [BuildUnityProject] -define:UNITY_2017_1_2
    [13:08:09] : [BuildUnityProject] -define:UNITY_2017_1
    [13:08:09] : [BuildUnityProject] -define:UNITY_2017
    [13:08:09] : [BuildUnityProject] -define:UNITY_PURCHASING
    [13:08:09] : [BuildUnityProject] -define:UNITY_ANALYTICS

    Now with 2017.2

    [10:06:12][BuildUnityProject] -define:UNITY_5_3_OR_NEWER
    [10:06:12][BuildUnityProject] -define:UNITY_5_4_OR_NEWER
    [10:06:12][BuildUnityProject] -define:UNITY_5_5_OR_NEWER
    [10:06:12][BuildUnityProject] -define:UNITY_5_6_OR_NEWER
    [10:06:12][BuildUnityProject] -define:UNITY_2017_1_OR_NEWER
    [10:06:12][BuildUnityProject] -define:UNITY_2017_2_OR_NEWER
    [10:06:12][BuildUnityProject] -define:UNITY_2017_2_0
    [10:06:12][BuildUnityProject] -define:UNITY_2017_2
    [10:06:12][BuildUnityProject] -define:UNITY_2017


    ENABLE_CLOUD_SERVICES_PURCHASING is defined for both Unity versions. I could use that but UnityIAP uses UNITY_PURCHASING in the scripts.
     
  2. maxthecat

    maxthecat

    Joined:
    May 26, 2014
    Posts:
    29
    FYI Building from within the Editor works fine.
     
  3. maxthecat

    maxthecat

    Joined:
    May 26, 2014
    Posts:
    29
    Seems a compiler error in one of my scripts was causing this. The define is added properly.

    Sorry for the bother.

    Thanks!
     
Thread Status:
Not open for further replies.