Prechádzať zdrojové kódy

Sign Release build becasue yadayada Xcode

Marcin Krzyzanowski 4 rokov pred
rodič
commit
07e47e89eb

+ 0 - 2
CryptoSwift.xcodeproj/project.pbxproj

@@ -314,7 +314,6 @@
 		75EC52781EE8B6CA0048EB3B /* Utils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Utils.swift; sourceTree = "<group>"; };
 		75EC52791EE8B6CA0048EB3B /* ZeroPadding.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZeroPadding.swift; sourceTree = "<group>"; };
 		75EC527A1EE8B6CA0048EB3B /* CryptoSwift.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CryptoSwift.h; sourceTree = "<group>"; };
-		75EDCB811DAC4CA400D270E0 /* LinuxMain.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = LinuxMain.swift; path = Tests/CryptoSwiftTests/LinuxMain.swift; sourceTree = SOURCE_ROOT; };
 		75F4E433216C93EF00F09710 /* CCM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CCM.swift; sourceTree = "<group>"; };
 		75F4E435216C98DE00F09710 /* CBCMAC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CBCMAC.swift; sourceTree = "<group>"; };
 		75F4E437216C9B5D00F09710 /* CHANGELOG */ = {isa = PBXFileReference; lastKnownFileType = text; path = CHANGELOG; sourceTree = SOURCE_ROOT; };
@@ -453,7 +452,6 @@
 				75482EA31CB310B7001F66A5 /* PBKDF.swift */,
 				7576F6F6207290F8006688F8 /* PBKDFPerf.swift */,
 				75C2E76C1D55F097003D2BCA /* Access.swift */,
-				75EDCB811DAC4CA400D270E0 /* LinuxMain.swift */,
 				756BFDCA1A82B87300B9D9A4 /* Bridging.h */,
 			);
 			name = Tests;

+ 0 - 30
config/CryptoSwift-Debug.xcconfig

@@ -1,36 +1,6 @@
-//
-// CryptoSwift-Debug.xcconfig
-//
-// Generated by BuildSettingExtractor on 02/04/2018
-// https://github.com/dempseyatgithub/BuildSettingExtractor
-//
-
 #include "CryptoSwift-Shared.xcconfig"
 
-
-// Other Swift Flags
-//
-// A list of additional flags to pass to the Swift compiler.
-
 OTHER_SWIFT_FLAGS = $(inherited) -Xfrontend -debug-time-function-bodies
-
-
-
 SWIFT_COMPILATION_MODE = incremental
-
-// Swift Optimization Level
-//
-// * *None:* Compile without any optimization. [-Onone]
-// * *Optimize for Speed:* [-O]
-// * *Optimize for Size:* [-Osize]
-// * *Whole Module Optimization:* [-O -whole-module-optimization]
-
 SWIFT_OPTIMIZATION_LEVEL = -Onone
-
-
-
-// Exclusive Access to Memory
-//
-// Enforce exclusive access to memory
-
 SWIFT_ENFORCE_EXCLUSIVE_ACCESS = none

+ 0 - 8
config/CryptoSwift-Release.xcconfig

@@ -1,13 +1,5 @@
-//
-// CryptoSwift-Release.xcconfig
-//
-// Generated by BuildSettingExtractor on 02/04/2018
-// https://github.com/dempseyatgithub/BuildSettingExtractor
-//
-
 #include "CryptoSwift-Shared.xcconfig"
 
-
 BITCODE_GENERATION_MODE = bitcode
 CLANG_USE_OPTIMIZATION_PROFILE = NO
 GCC_GENERATE_DEBUGGING_SYMBOLS = NO

+ 0 - 113
config/CryptoSwift-Shared.xcconfig

@@ -1,128 +1,15 @@
-//
-// CryptoSwift-Shared.xcconfig
-//
-// Generated by BuildSettingExtractor on 02/04/2018
-// https://github.com/dempseyatgithub/BuildSettingExtractor
-//
-
 CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES
-
-// Require Only App-Extension-Safe API
-//
-// When enabled, this causes the compiler and linker to disallow use of APIs that are not
-// available to app extensions and to disallow linking to frameworks that have not been
-// built with this setting enabled.
-
 APPLICATION_EXTENSION_API_ONLY = YES
-
-
-
-// Compatibility Version
-//
-// Determines the compatibility version of the resulting library, bundle, or framework
-// binary. See [Dynamic Library Design
-// Guidelines](https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html#//apple_ref/doc/uid/TP40002013-SW19)
-// in [Dynamic Library Programming
-// Topics](https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/DynamicLibraries/000-Introduction/Introduction.html)
-// for details on assigning version numbers of dynamic libraries.
-
 DYLIB_COMPATIBILITY_VERSION = 1
-
-
-
-// Current Library Version
-//
-// This setting defines the current version of any framework built by the project. As
-// with `CURRENT_PROJECT_VERSION`, the value must be an integer or floating point number,
-// such as `57` or `365.8`. By default, it is set to `$(CURRENT_PROJECT_VERSION)`. See
-// [Dynamic Library Design
-// Guidelines](https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html#//apple_ref/doc/uid/TP40002013-SW19)
-// in [Dynamic Library Programming
-// Topics](https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/DynamicLibraries/000-Introduction/Introduction.html)
-// for details on assigning version numbers of dynamic libraries.
-
 DYLIB_CURRENT_VERSION = 1
-
-
-
-// Dynamic Library Install Name Base
-//
-// Sets the base value for the internal `install path` (`LC_ID_DYLIB`) in a dynamic
-// library. This will be combined with the `EXECUTABLE_PATH` to form the full install
-// path. Setting `LD_DYLIB_INSTALL_NAME` directly will override this setting. This
-// setting defaults to the target's `INSTALL_PATH`. It is ignored when building any
-// product other than a dynamic library.
-
 DYLIB_INSTALL_NAME_BASE = @rpath
 
-
-
-// Enable Bitcode
-//
-// Activating this setting indicates that the target or project should generate bitcode
-// during compilation for platforms and architectures that support it. For Archive
-// builds, bitcode will be generated in the linked binary for submission to the App
-// Store. For other builds, the compiler and linker will check whether the code complies
-// with the requirements for bitcode generation, but will not generate actual bitcode.
-
 ENABLE_BITCODE = YES
-
-
-
-// Enable Bitcode
-//
-// Activating this setting indicates that the target or project should generate bitcode
-// during compilation for platforms and architectures that support it. For Archive
-// builds, bitcode will be generated in the linked binary for submission to the App
-// Store. For other builds, the compiler and linker will check whether the code complies
-// with the requirements for bitcode generation, but will not generate actual bitcode.
-
 ENABLE_BITCODE[sdk=macosx*] = NO
 
-
-
-// Installation Directory
-//
-// The directory in which to install the build products. This path is prepended by the
-// `DSTROOT`.
-
 INSTALL_PATH = $(LOCAL_LIBRARY_DIR)/Frameworks
-
-
-// Runpath Search Paths
-//
-// This is a list of paths to be added to the `runpath` search path list for the image
-// being created. At runtime, `dyld` uses the `runpath` when searching for dylibs whose
-// load path begins with `@rpath/`. See [Dynamic Library Programming
-// Topics](https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/DynamicLibraries/000-Introduction/Introduction.html).
-
 LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks @loader_path/Frameworks
-
-// Info.plist File
-
 INFOPLIST_FILE = Info.plist
-
-// Product Bundle Identifier
-//
-// A string that uniquely identifies the bundle. The string should be in reverse DNS
-// format using only alphanumeric characters (`A-Z`, `a-z`, `0-9`), the dot (`.`), and
-// the hyphen (`-`). This value is used as the `CFBundleIdentifier` in the `Info.plist`
-// of the built bundle.
-
 PRODUCT_BUNDLE_IDENTIFIER = com.krzyzanowskim.${PRODUCT_NAME:rfc1034identifier}
-
-
-
-// Product Name
-//
-// This is the basename of the product generated by the target.
-
 PRODUCT_NAME = $(TARGET_NAME)
-
-
-
-// Skip Install
-//
-// If enabled, don't install built products even if deployment locations are active.
-
 SKIP_INSTALL = YES

+ 0 - 7
config/CryptoSwift-Test.xcconfig

@@ -1,10 +1,3 @@
-//
-// CryptoSwift-Test.xcconfig
-//
-// Generated by BuildSettingExtractor on 02/04/2018
-// https://github.com/dempseyatgithub/BuildSettingExtractor
-//
-
 #include "CryptoSwift-Shared.xcconfig"
 
 ENABLE_TESTABILITY = YES

+ 2 - 7
config/Project-Release.xcconfig

@@ -1,12 +1,7 @@
-//
-// Project-Release.xcconfig
-//
-// Generated by BuildSettingExtractor on 02/04/2018
-// https://github.com/dempseyatgithub/BuildSettingExtractor
-//
-
 #include "Project-Shared.xcconfig"
 
+CODE_SIGN_IDENTITY[sdk=macosx*] = -
+
 CLANG_USE_OPTIMIZATION_PROFILE = YES
 COPY_PHASE_STRIP = YES
 ENABLE_NS_ASSERTIONS = NO

+ 7 - 12
config/Project-Shared.xcconfig

@@ -1,10 +1,3 @@
-//
-// Project-Shared.xcconfig
-//
-// Generated by BuildSettingExtractor on 02/04/2018
-// https://github.com/dempseyatgithub/BuildSettingExtractor
-//
-
 MARKETING_VERSION = 1.3.4
 
 SUPPORTED_PLATFORMS = iphonesimulator iphoneos macosx appletvos watchos appletvsimulator watchsimulator
@@ -20,11 +13,13 @@ MACOSX_DEPLOYMENT_TARGET = 10.12
 WATCHOS_DEPLOYMENT_TARGET = 2.0
 
 DEVELOPMENT_TEAM =
-PROVISIONING_PROFILE =
-PROVISIONING_PROFILE_SPECIFIER =
-CODE_SIGN_IDENTITY =
-CODE_SIGN_STYLE = Manual
-CODE_SIGNING_REQUIRED = NO
+//PROVISIONING_PROFILE =
+//PROVISIONING_PROFILE_SPECIFIER =
+
+CODE_SIGN_IDENTITY[sdk=macosx*] = Mac Developer
+CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer
+CODE_SIGN_IDENTITY[sdk=iphonesimulator*] = iPhone Developer
+CODE_SIGN_STYLE = Automatic
 
 PRODUCT_NAME = ${TARGET_NAME}
 

+ 4 - 6
config/Tests-Shared.xcconfig

@@ -1,9 +1,7 @@
-//
-// Tests-Shared.xcconfig
-//
-// Generated by BuildSettingExtractor on 02/04/2018
-// https://github.com/dempseyatgithub/BuildSettingExtractor
-//
+DEVELOPMENT_TEAM =
+CODE_SIGN_IDENTITY =
+CODE_SIGN_STYLE = Manual
+CODE_SIGNING_REQUIRED = NO
 
 HEADER_SEARCH_PATHS = $(inherited) includes/**
 

+ 0 - 7
config/Tests-Test.xcconfig

@@ -1,10 +1,3 @@
-//
-// Tests-Test.xcconfig
-//
-// Generated by BuildSettingExtractor on 02/04/2018
-// https://github.com/dempseyatgithub/BuildSettingExtractor
-//
-
 #include "Tests-Shared.xcconfig"
 
 COPY_PHASE_STRIP = NO

+ 1 - 3
scripts/build-framework.sh

@@ -7,8 +7,6 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
 OUTPUT_DIR=$( mktemp -d )
 COMMON_SETUP="-project ${SCRIPT_DIR}/../CryptoSwift.xcodeproj -scheme CryptoSwift -configuration Release -quiet SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES"
 
-# carthage build --no-skip-current --create-xcframework --configuration "Release" --platform all
-
 # macOS
 DERIVED_DATA_PATH=$( mktemp -d )
 xcrun xcodebuild build \
@@ -110,7 +108,7 @@ xcrun xcodebuild -quiet -create-xcframework \
 	-output ${OUTPUT_DIR}/CryptoSwift.xcframework
 
 # zip CryptoSwift.xcframework.zip ${OUTPUT_DIR}/CryptoSwift.xcframework
-mv ${OUTPUT_DIR}/CryptoSwift.xcframework ${BASE_PWD}
+mv -f ${OUTPUT_DIR}/CryptoSwift.xcframework ${BASE_PWD}
 
 echo "✔️ CryptoSwift.xcframework"