Skip to content

Commit

Permalink
[auth][ios] fix compatibility for ios < 13 (#4252)
Browse files Browse the repository at this point in the history
## Description

fix compatibility for ios < 13 and ios >=12

Reference:
https://stackoverflow.com/questions/57907817/dyld-library-not-loaded-swiftui-when-app-runs-on-ios-12-using-availableios-13

## Tests

Co-authored-by: Prateek Sunal <[email protected]>
  • Loading branch information
prateekmedia and prateekmedia authored Dec 2, 2024
1 parent 9055eee commit c1ea512
Showing 1 changed file with 188 additions and 0 deletions.
188 changes: 188 additions & 0 deletions auth/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,100 @@
"$(inherited)",
"@executable_path/Frameworks",
);
OTHER_LDFLAGS = (
"$(inherited)",
"-l\"swiftCoreGraphics\"",
"-framework",
"\"AVFoundation\"",
"-framework",
"\"AVKit\"",
"-framework",
"\"DKImagePickerController\"",
"-framework",
"\"DKPhotoGallery\"",
"-framework",
"\"Foundation\"",
"-framework",
"\"ImageIO\"",
"-framework",
"\"LocalAuthentication\"",
"-framework",
"\"MTBBarcodeScanner\"",
"-framework",
"\"OrderedSet\"",
"-framework",
"\"Photos\"",
"-framework",
"\"QuartzCore\"",
"-framework",
"\"SDWebImage\"",
"-framework",
"\"Sentry\"",
"-framework",
"\"SwiftyGif\"",
"-framework",
"\"Toast\"",
"-framework",
"\"UIKit\"",
"-framework",
"\"app_links\"",
"-framework",
"\"connectivity_plus\"",
"-framework",
"\"device_info_plus\"",
"-framework",
"\"file_picker\"",
"-framework",
"\"file_saver\"",
"-framework",
"\"fk_user_agent\"",
"-framework",
"\"flutter_email_sender\"",
"-framework",
"\"flutter_inappwebview_ios\"",
"-framework",
"\"flutter_local_authentication\"",
"-framework",
"\"flutter_local_notifications\"",
"-framework",
"\"flutter_native_splash\"",
"-framework",
"\"flutter_secure_storage\"",
"-framework",
"\"fluttertoast\"",
"-framework",
"\"local_auth_darwin\"",
"-framework",
"\"move_to_background\"",
"-framework",
"\"package_info_plus\"",
"-framework",
"\"path_provider_foundation\"",
"-framework",
"\"privacy_screen\"",
"-framework",
"\"qr_code_scanner\"",
"-framework",
"\"sentry_flutter\"",
"-framework",
"\"share_plus\"",
"-framework",
"\"shared_preferences_foundation\"",
"-framework",
"\"sodium_libs\"",
"-framework",
"\"sqflite\"",
"-framework",
"\"sqlite3\"",
"-framework",
"\"sqlite3_flutter_libs\"",
"-framework",
"\"url_launcher_ios\"",
"-weak_framework",
"\"LinkPresentation\"",
"-weak_framework",
SwiftUI,
);
PRODUCT_BUNDLE_IDENTIFIER = io.ente.auth;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down Expand Up @@ -592,6 +686,100 @@
"$(inherited)",
"@executable_path/Frameworks",
);
OTHER_LDFLAGS = (
"$(inherited)",
"-l\"swiftCoreGraphics\"",
"-framework",
"\"AVFoundation\"",
"-framework",
"\"AVKit\"",
"-framework",
"\"DKImagePickerController\"",
"-framework",
"\"DKPhotoGallery\"",
"-framework",
"\"Foundation\"",
"-framework",
"\"ImageIO\"",
"-framework",
"\"LocalAuthentication\"",
"-framework",
"\"MTBBarcodeScanner\"",
"-framework",
"\"OrderedSet\"",
"-framework",
"\"Photos\"",
"-framework",
"\"QuartzCore\"",
"-framework",
"\"SDWebImage\"",
"-framework",
"\"Sentry\"",
"-framework",
"\"SwiftyGif\"",
"-framework",
"\"Toast\"",
"-framework",
"\"UIKit\"",
"-framework",
"\"app_links\"",
"-framework",
"\"connectivity_plus\"",
"-framework",
"\"device_info_plus\"",
"-framework",
"\"file_picker\"",
"-framework",
"\"file_saver\"",
"-framework",
"\"fk_user_agent\"",
"-framework",
"\"flutter_email_sender\"",
"-framework",
"\"flutter_inappwebview_ios\"",
"-framework",
"\"flutter_local_authentication\"",
"-framework",
"\"flutter_local_notifications\"",
"-framework",
"\"flutter_native_splash\"",
"-framework",
"\"flutter_secure_storage\"",
"-framework",
"\"fluttertoast\"",
"-framework",
"\"local_auth_darwin\"",
"-framework",
"\"move_to_background\"",
"-framework",
"\"package_info_plus\"",
"-framework",
"\"path_provider_foundation\"",
"-framework",
"\"privacy_screen\"",
"-framework",
"\"qr_code_scanner\"",
"-framework",
"\"sentry_flutter\"",
"-framework",
"\"share_plus\"",
"-framework",
"\"shared_preferences_foundation\"",
"-framework",
"\"sodium_libs\"",
"-framework",
"\"sqflite\"",
"-framework",
"\"sqlite3\"",
"-framework",
"\"sqlite3_flutter_libs\"",
"-framework",
"\"url_launcher_ios\"",
"-weak_framework",
"\"LinkPresentation\"",
"-weak_framework",
SwiftUI,
);
PRODUCT_BUNDLE_IDENTIFIER = io.ente.auth;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down

0 comments on commit c1ea512

Please sign in to comment.