Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Values for Environment Variables Errors #37

Open
altyus opened this issue Dec 15, 2015 · 4 comments
Open

Missing Values for Environment Variables Errors #37

altyus opened this issue Dec 15, 2015 · 4 comments

Comments

@altyus
Copy link

altyus commented Dec 15, 2015

When I archive I get numerous errors stating that my production environment is missing values, 1 for each environment variable. This has no effect on my build (all the environment variables work) and I don't see the error at all when building for debug. The issue is, this crashes Xcode Build and by extension my continuous integration build automation process.

/Users/altyus/Development/MakeSpace/iOS/MakeSpaceConsumerApp/MakeSpace/support/KZBEnvironments.plist:1: missing value of variable googleAnalyticsTrackingId for env @\"PRODUCTION\" available values {
    DEVELOPMENT = "xxxxxxxxxxxxx";
    LOCALHOST = "xxxxxxxxxxxxx";
    PRODUCTION = "xxxxxxxxxxxxx";
    STAGING = "xxxxxxxxxxxxx";
}
/Users/altyus/Development/MakeSpace/iOS/MakeSpaceConsumerApp/DerivedData/MakeSpace/Build/Intermediates/ArchiveIntermediates/MakeSpace/InstallationBuildProductsLocation/Applications/MakeSpace.app/KZBEnvironments.plist
/Users/altyus/Development/MakeSpace/iOS/MakeSpaceConsumerApp/DerivedData/MakeSpace/Build/Products/Debug-iphoneos/MakeSpace.app/KZBEnvironments.plist
/Users/altyus/Development/MakeSpace/iOS/MakeSpaceConsumerApp/DerivedData/MakeSpace/Build/Products/Debug-iphonesimulator/MakeSpace.app/KZBEnvironments.plist
/Users/altyus/Development/MakeSpace/iOS/MakeSpaceConsumerApp/MakeSpace/support/KZBEnvironments.plist:1: missing value of variable webBaseURLString for env @\"PRODUCTION\" available values {
    DEVELOPMENT = "https://xxxxxxxxxxxxx.com";
    LOCALHOST = "https://xxxxxxxxxxxxx.com";
    PRODUCTION = "https://xxxxxxxxxxxxx.com";
    STAGING = "https://xxxxxxxxxxxxx.com";
}

Command /bin/sh emitted errors but did not return a nonzero exit code to indicate failure
@krzysztofzablocki
Copy link
Owner

the string @"PRODUCTION" looks suspicious to me, if you see how the log message is logged in the example images there should not be NSString formatting involved, how did you set the values?

@altyus
Copy link
Author

altyus commented Dec 16, 2015

kzbscreenshot

@krzysztofzablocki
Copy link
Owner

What's the default env you set via xcodebuild or scheme?

@altyus
Copy link
Author

altyus commented Dec 16, 2015

Thanks a ton for the responsiveness. I must admit, I inherited the usage of the library from a previous developer so i'm piecing things together, but I did find this when searching for @"PRODUCTION"

kzbstuff

If I try removing the formatting @" " however and leave the raw strings my build fails when attempting to set the KZBootstrap defaultbuildEnvironment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants