Natrium icon indicating copy to clipboard operation
Natrium copied to clipboard

.natrium Directory is not created

Open shreeLw opened this issue 3 years ago • 1 comments

I tried to integrate the Natrium using SPM, Manually and cocoapods as well. The ".natrium.yml" file which i am having a different variable. Through cococapods the Natrium.swift file is generated under "Pods/Natrium/Natrium/Natrium.swift" path but the configuration which is generated is not as per my .yml file. Also with SPM the step 4 the .natrium directory is not generated.

Build your project (⌘ + B or ⌘ + R).
Then open the .natrium directory from your project root and:

Add the Natrium.swift file to your projects target.
Add all the Natrium.*.xcconfig files to your project and do NOT add them to your target(s).

Tried to integrate the Natrium using SPM in demo project as well.

Below is the sample of .natrium.yml which i am using.

settings:
  stringType: "StaticString"
  
environments:
  - QA
  - Staging

variables:
  stripeKey:
      QA: "pk_test_***"
    Staging: "pk_test_***"
   
  graphQLEndpoint:
    Staging: "https://graph.preview.helfie.io/graphql"
    QA: "https://graph.development.helfie.ai/graphql"
    
  restAPIEndpoint:
    Staging: "https://helfie-core-ojhavw35wq-ts.a.run.app/v1/helfie"
    QA: "https://helfie-core-ojhavw35wq-ts.a.run.app/v1/helfie"
  authenticationEndpoint:
   
    Staging: "https://graph.preview.helfie.io/v1"
    QA: "https://graph.development.helfie.ai/v1"


plists:
"NatriumDemo/Info.plist":
        CFBundleDisplayName:
            Staging: App_staging
            Production: App
    "NatriumDemo/App.entitlements":
        "aps-environment":
            "*":
                Debug: "development"
                Release: "production"


shreeLw avatar Jun 17 '22 07:06 shreeLw

What does your pre-build script look like?

basvankuijck avatar Aug 05 '22 07:08 basvankuijck