Skip to content

Commit

Permalink
- updated podspec (added s.swift_version etc.)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinex committed Oct 2, 2021
1 parent 9d6abc5 commit f09a05e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.kineapps.flutterArchiveExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Profile;
Expand Down Expand Up @@ -519,7 +519,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Debug;
Expand All @@ -546,7 +546,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.kineapps.flutterArchiveExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Release;
Expand Down
10 changes: 6 additions & 4 deletions ios/flutter_archive.podspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint flutter_archive.podspec` to validate before publishing.
#
Pod::Spec.new do |s|
s.name = 'flutter_archive'
Expand All @@ -17,9 +18,10 @@ A new flutter plugin project.
s.dependency 'Flutter'
s.dependency 'ZIPFoundation', '0.9.11'

s.platform = :ios, '9.0'
s.ios.deployment_target = '9.0'

# https://github.com/flutter/flutter/issues/40289
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
s.swift_version = '5.0'
end

0 comments on commit f09a05e

Please sign in to comment.