From 74f1c8a5aec893b04e5076c065ff95a6c953b9fd Mon Sep 17 00:00:00 2001 From: willem Date: Tue, 12 Oct 2021 11:23:57 +0800 Subject: [PATCH] fix plugin build with ios simulator --- example/ios/Flutter/AppFrameworkInfo.plist | 2 +- example/pubspec.yaml | 1 + ios/flutter_openim_sdk.podspec | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/example/ios/Flutter/AppFrameworkInfo.plist index 9367d48..8d4492f 100644 --- a/example/ios/Flutter/AppFrameworkInfo.plist +++ b/example/ios/Flutter/AppFrameworkInfo.plist @@ -21,6 +21,6 @@ CFBundleVersion 1.0 MinimumOSVersion - 8.0 + 9.0 diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 3e0bad9..cb99774 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -4,6 +4,7 @@ description: Demonstrates how to use the flutter_openim_sdk plugin. # The following line prevents the package from being accidentally published to # pub.dev using `pub publish`. This is preferred for private packages. #publish_to: 'none' # Remove this line if you wish to publish to pub.dev +version: 1.0.0 environment: sdk: ">=2.12.0 <3.0.0" diff --git a/ios/flutter_openim_sdk.podspec b/ios/flutter_openim_sdk.podspec index f823dec..14639d5 100644 --- a/ios/flutter_openim_sdk.podspec +++ b/ios/flutter_openim_sdk.podspec @@ -19,6 +19,6 @@ A new Flutter project. s.vendored_frameworks = 'Framework/*.framework' # Flutter.framework does not contain a i386 slice. - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } + s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386 arm64' } s.swift_version = '5.0' end