Skip to content

Commit

Permalink
Disable Apple Silicon support for Cocoapods
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Oct 21, 2020
1 parent a163995 commit 1763670
Showing 1 changed file with 28 additions and 23 deletions.
51 changes: 28 additions & 23 deletions Sodium.podspec
Original file line number Diff line number Diff line change
@@ -1,33 +1,38 @@
# Requires CocoaPods 1.10.0
#
# WARNING: Apple Silicon is not supported when using Cocoapods.
# If you need to support Apple Silicon, use the Swift package instead.

Pod::Spec.new do |s|
s.name = 'Sodium'
s.version = '0.9.0'
s.swift_version = '5.0'
s.license = { :type => "ISC", :file => 'LICENSE' }
s.summary = 'Swift-Sodium provides a safe and easy to use interface to perform common cryptographic operations on Apple platforms.'
s.homepage = 'https://github.com/jedisct1/swift-sodium'
s.social_media_url = 'https://twitter.com/jedisct1'
s.authors = { 'Frank Denis' => '' }
s.source = { :git => 'https://github.com/jedisct1/swift-sodium.git',
:tag => '0.9.0' }
s.name = "Sodium"
s.version = "0.9.0"
s.swift_version = "5.0"
s.license = { type: "ISC", file: "LICENSE" }
s.summary = "Swift-Sodium provides a safe and easy to use interface to perform common cryptographic operations on Apple platforms."
s.homepage = "https://github.com/jedisct1/swift-sodium"
s.social_media_url = "https://twitter.com/jedisct1"
s.authors = { "Frank Denis" => "" }
s.source = { git: "https://github.com/jedisct1/swift-sodium.git",
tag: "0.9.0" }

s.ios.deployment_target = '12.0'
s.osx.deployment_target = '10.11'
s.watchos.deployment_target = '5.0'
s.ios.deployment_target = "12.0"
s.osx.deployment_target = "10.11"
s.watchos.deployment_target = "5.0"

s.source_files = 'Sodium/**/*.{swift,h}'
s.private_header_files = 'Sodium/libsodium/*.h'
s.source_files = "Sodium/**/*.{swift,h}"
s.private_header_files = "Sodium/libsodium/*.h"

s.pod_target_xcconfig = {
'SWIFT_INCLUDE_PATHS' => '$(inherited) "${PODS_XCFRAMEWORKS_BUILD_DIR}/Clibsodium"'
}
s.pod_target_xcconfig = {
"SWIFT_INCLUDE_PATHS" => '$(inherited) "${PODS_XCFRAMEWORKS_BUILD_DIR}/Clibsodium"',
"EXCLUDED_ARCHS[sdk=*simulator*]" => "arm64",
}

s.user_target_xcconfig = {
'SWIFT_INCLUDE_PATHS' => '$(inherited) "${PODS_XCFRAMEWORKS_BUILD_DIR}/Clibsodium"'
}
s.user_target_xcconfig = {
"SWIFT_INCLUDE_PATHS" => '$(inherited) "${PODS_XCFRAMEWORKS_BUILD_DIR}/Clibsodium"',
"EXCLUDED_ARCHS[sdk=*simulator*]" => "arm64",
}

s.requires_arc = true
s.requires_arc = true

s.vendored_frameworks = 'Clibsodium.xcframework'
s.vendored_frameworks = "Clibsodium.xcframework"
end

0 comments on commit 1763670

Please sign in to comment.