Skip to content

Commit 8e7d73f

Browse files
author
Aleksandar Vacic
committed
Added all supported platforms: tvOS, iOS, macOS, watchOS
re #102
1 parent 76ab3de commit 8e7d73f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

JWT.xcodeproj/project.pbxproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -521,17 +521,13 @@
521521
buildActionMask = 2147483647;
522522
files = (
523523
);
524-
inputFileListPaths = (
525-
);
526524
inputPaths = (
527525
);
528-
outputFileListPaths = (
529-
);
530526
outputPaths = (
531527
);
532528
runOnlyForDeploymentPostprocessing = 0;
533529
shellPath = /bin/sh;
534-
shellScript = "COMMON_CRYPTO_DIR=\"${SDKROOT}/usr/include/CommonCrypto\"\nif [ -f \"${COMMON_CRYPTO_DIR}/module.modulemap\" ]\nthen\necho \"CommonCrypto already exists, skipping\"\nelse\n# This if-statement means we'll only run the main script if the CommonCryptoModuleMap directory doesn't exist\n# Because otherwise the rest of the script causes a full recompile for anything where CommonCrypto is a dependency\n# Do a \"Clean Build Folder\" to remove this directory and trigger the rest of the script to run\nif [ -d \"${BUILT_PRODUCTS_DIR}/CommonCryptoModuleMap\" ]; then\necho \"${BUILT_PRODUCTS_DIR}/CommonCryptoModuleMap directory already exists, so skipping the rest of the script.\"\nexit 0\nfi\n\nmkdir -p \"${BUILT_PRODUCTS_DIR}/CommonCryptoModuleMap\"\ncat <<EOF > \"${BUILT_PRODUCTS_DIR}/CommonCryptoModuleMap/module.modulemap\"\nmodule CommonCrypto [system] {\nheader \"${SDKROOT}/usr/include/CommonCrypto/CommonCrypto.h\"\nexport *\n}\nEOF\nfi\n";
530+
shellScript = "COMMON_CRYPTO_DIR=\"${SDKROOT}/usr/include/CommonCrypto\"\nif [ -f \"${COMMON_CRYPTO_DIR}/module.modulemap\" ]\nthen\necho \"CommonCrypto already exists, skipping\"\nelse\n# This if-statement means we'll only run the main script if the CommonCryptoModuleMap directory doesn't exist\n# Because otherwise the rest of the script causes a full recompile for anything where CommonCrypto is a dependency\n# Do a \"Clean Build Folder\" to remove this directory and trigger the rest of the script to run\nif [ -d \"${BUILT_PRODUCTS_DIR}/CommonCryptoModuleMap\" ]; then\necho \"${BUILT_PRODUCTS_DIR}/CommonCryptoModuleMap directory already exists, so skipping the rest of the script.\"\nexit 0\nfi\n\nmkdir -p \"${BUILT_PRODUCTS_DIR}/CommonCryptoModuleMap\"\ncat <<EOF > \"${BUILT_PRODUCTS_DIR}/CommonCryptoModuleMap/module.modulemap\"\nmodule CommonCrypto [system] {\n header \"${SDKROOT}/usr/include/CommonCrypto/CommonCrypto.h\"\n export *\n}\nEOF\necho \"Built ${BUILT_PRODUCTS_DIR}/CommonCryptoModuleMap directory\"\nfi";
535531
};
536532
/* End PBXShellScriptBuildPhase section */
537533

@@ -847,6 +843,7 @@
847843
PRODUCT_BUNDLE_IDENTIFIER = "org.cocode.$(PRODUCT_NAME:rfc1034identifier)";
848844
SDKROOT = iphoneos;
849845
SKIP_INSTALL = YES;
846+
SWIFT_INCLUDE_PATHS = "$(inherited) ${BUILT_PRODUCTS_DIR}/CommonCryptoModuleMap";
850847
TARGETED_DEVICE_FAMILY = "1,2";
851848
};
852849
name = Debug;
@@ -866,6 +863,7 @@
866863
PRODUCT_BUNDLE_IDENTIFIER = "org.cocode.$(PRODUCT_NAME:rfc1034identifier)";
867864
SDKROOT = iphoneos;
868865
SKIP_INSTALL = YES;
866+
SWIFT_INCLUDE_PATHS = "$(inherited) ${BUILT_PRODUCTS_DIR}/CommonCryptoModuleMap";
869867
TARGETED_DEVICE_FAMILY = "1,2";
870868
VALIDATE_PRODUCT = YES;
871869
};
@@ -954,6 +952,7 @@
954952
buildSettings = {
955953
CODE_SIGN_STYLE = Automatic;
956954
PRODUCT_NAME = "$(TARGET_NAME)";
955+
SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos appletvsimulator appletvos watchsimulator watchos";
957956
};
958957
name = Debug;
959958
};
@@ -962,6 +961,7 @@
962961
buildSettings = {
963962
CODE_SIGN_STYLE = Automatic;
964963
PRODUCT_NAME = "$(TARGET_NAME)";
964+
SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos appletvsimulator appletvos watchsimulator watchos";
965965
};
966966
name = Release;
967967
};

0 commit comments

Comments
 (0)