Closed xlcod closed 3 years ago
@xlcod How do you set the minimum deployment target specifically?
We use
# Uncomment this line to define a global platform for your project
minimum_deployment_target = 11.0
platform :ios, minimum_deployment_target
# usual configuration omitted
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
# Ensure we set all Pods to match the minimum deployment target specified by the app.
# This ensures that we don't generate debug symbols for invalid architectures from the Pods
#
# https://github.com/CocoaPods/CocoaPods/issues/7111#issuecomment-573709158
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = minimum_deployment_target
end
end
end
from xcode and also on the podfile
# Uncomment this line to define a global platform for your project
platform :ios, '10.0'
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
im trying everything and still fails everytime
thanks.
@xlcod I think you need the bottom part of the script I posted (the post_install
).
still getting this error with the post_install
`event sent after app closed: {id: 0, progressId: null, message: Running "flutter pub get" in inspiria...} event sent after app closed: {id: 0, progressId: null, finished: true} Launching lib/main.dart on iPhone 12 Pro Max in debug mode... Xcode build done. 24,3s Failed to build iOS app Error output from Xcode build: ↳ BUILD FAILED Xcode's output: ↳ /Users/deybys/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+21/ios/Classes/FLTImagePickerPlugin.m:149:20: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations] [[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Error", nil) ^ In module 'UIKit' imported from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Target Support Files/image_picker/image_picker-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here @interface UIAlertView : UIView ^ 1 warning generated. /Users/deybys/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-3.0.3/ios/Classes/FlutterLocalNotificationsPlugin.m:13:5: warning: 'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationRequest [-Wdeprecated-declarations] UILocalNotification *_launchNotification; ^ In module 'UIKit' imported from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Target Support Files/flutter_local_notifications/flutter_local_notifications-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h:18:12: note: 'UILocalNotification' has been explicitly marked deprecated here @interface UILocalNotification : NSObject<NSCopying, NSCoding> ^ /Users/deybys/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-3.0.3/ios/Classes/FlutterLocalNotificationsPlugin.m:295:4: warning: 'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationRequest [-Wdeprecated-declarations]
^
1 warning generated. /Users/deybys/.pub-cache/hosted/pub.dartlang.org/firebase_auth_oauth-0.2.3/ios/Classes/FirebaseAuthOAuthPlugin+AppleSignIniOS13.swift:10:8: error: no such module 'FirebaseAuth' import FirebaseAuth ^ /Users/deybys/.pub-cache/hosted/pub.dartlang.org/firebase_auth_oauth-0.2.3/ios/Classes/FirebaseAuthOAuthPlugin+AppleSignIniOS13.swift:10:8: error: no such module 'FirebaseAuth' import FirebaseAuth ^ /Users/deybys/.pub-cache/hosted/pub.dartlang.org/firebase_auth_oauth-0.2.3/ios/Classes/FirebaseAuthOAuthPlugin+AppleSignIniOS13.swift:10:8: error: no such module 'FirebaseAuth' import FirebaseAuth ^ /Users/deybys/.pub-cache/hosted/pub.dartlang.org/firebase_auth_oauth-0.2.3/ios/Classes/FirebaseAuthOAuthPlugin+AppleSignIniOS13.swift:10:8: error: no such module 'FirebaseAuth' import FirebaseAuth ^ /Users/deybys/.pub-cache/hosted/pub.dartlang.org/firebase_auth_oauth-0.2.3/ios/Classes/FirebaseAuthOAuthPlugin+AppleSignIniOS13.swift:10:8: error: no such module 'FirebaseAuth' import FirebaseAuth ^ note: Using new build system note: Building targets in parallel note: Planning build note: Constructing build description Could not build the application for the simulator. Error launching application on iPhone 12 Pro Max. Exited (sigterm)
The error Users/deybys/.pub-cache/hosted/pub.dartlang.org/firebase_auth_oauth-0.2.3/ios/Classes/FirebaseAuthOAuthPlugin+AppleSignIniOS13.swift:10:8: error: no such module 'FirebaseAuth'
points toward Firebase being the culprit here, not this plugin.
As I have never used this in conjunction with Firebase I can't offer any help with that one though. (It reads as if the Firebase OAuth plugin doesn't find the "base" FirebaseAuth plugin)
@tp The thing is that i don´t have any Firebase_auth installed i only have some analytics and other stuff that runs fine, if i install this plugin everything breaks.
this runs fine Example: `
this does not
`
Hi, i´m having problems compiling with this plugin using algo
firebase_messaging: ^8.0.0-dev.11
firebase_analytics: ^7.0.0
firebase_core: ^0.7.0
firebase_auth: ^0.20.0+1
i already changed the deployment target in Podfile,and from xcode internally, and still the same error. here is the output , it says the deployment target still is in 8.0, and its on 10.0
Error Output : `Launching lib/main.dart on iPhone 12 Pro Max in debug mode... Xcode build done. 53,1s Failed to build iOS app Error output from Xcode build: ↳ BUILD FAILED Xcode's output: ↳ In file included from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.m:26: /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.h:282:31: warning: 'NSTextAlignment' is only available on iOS 6.0 or newer [-Wunguarded-availability] @property (assign, nonatomic) NSTextAlignment titleAlignment; ^ In module 'UIKit' imported from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h:20:28: note: 'NSTextAlignment' has been marked as being introduced in iOS 6.0 here, but the deployment target is iOS 4.3.0 typedef NS_ENUM(NSInteger, NSTextAlignment) { ^ In file included from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.m:26: /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.h:221:12: note: annotate 'CSToastStyle' with an availability attribute to silence this warning @interface CSToastStyle : NSObject ^ /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.h:287:31: warning: 'NSTextAlignment' is only available on iOS 6.0 or newer [-Wunguarded-availability] @property (assign, nonatomic) NSTextAlignment messageAlignment; ^ In module 'UIKit' imported from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h:20:28: note: 'NSTextAlignment' has been marked as being introduced in iOS 6.0 here, but the deployment target is iOS 4.3.0 typedef NS_ENUM(NSInteger, NSTextAlignment) { ^ In file included from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.m:26: /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.h:221:12: note: annotate 'CSToastStyle' with an availability attribute to silence this warning @interface CSToastStyle : NSObject ^ /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.m:265:36: warning: 'NSLineBreakByTruncatingTail' is only available on iOS 6.0 or newer [-Wunguarded-availability] titleLabel.lineBreakMode = NSLineBreakByTruncatingTail; ^
~~~~~~ In module 'UIKit' imported from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h:20:28: note: 'NSLineBreakMode' has been marked as being introduced in iOS 6.0 here, but the deployment target is iOS 4.3.0 typedef NS_ENUM(NSInteger, NSLineBreakMode) { ^ /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.m:265:36: note: enclose 'NSLineBreakByTruncatingTail' in an @available check to silence this warning titleLabel.lineBreakMode = NSLineBreakByTruncatingTail; ^~~~~~~ /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.m:284:38: warning: 'NSLineBreakByTruncatingTail' is only available on iOS 6.0 or newer [-Wunguarded-availability] messageLabel.lineBreakMode = NSLineBreakByTruncatingTail; ^~~~~~~ In module 'UIKit' imported from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h:20:28: note: 'NSLineBreakMode' has been marked as being introduced in iOS 6.0 here, but the deployment target is iOS 4.3.0 typedef NS_ENUM(NSInteger, NSLineBreakMode) { ^ /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.m:284:38: note: enclose 'NSLineBreakByTruncatingTail' in an @available check to silence this warning messageLabel.lineBreakMode = NSLineBreakByTruncatingTail; ^~~~~~~ /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.m:477:31: warning: 'NSTextAlignmentLeft' is only available on iOS 6.0 or newer [-Wunguarded-availability] self.titleAlignment = NSTextAlignmentLeft; ^~~~~~~ In module 'UIKit' imported from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h:20:28: note: 'NSTextAlignment' has been marked as being introduced in iOS 6.0 here, but the deployment target is iOS 4.3.0 typedef NS_ENUM(NSInteger, NSTextAlignment) { ^ /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.m:477:31: note: enclose 'NSTextAlignmentLeft' in an @available check to silence this warning self.titleAlignment = NSTextAlignmentLeft; ^~~~~~~ /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.m:478:33: warning: 'NSTextAlignmentLeft' is only available on iOS 6.0 or newer [-Wunguarded-availability] self.messageAlignment = NSTextAlignmentLeft; ^~~~~~~ In module 'UIKit' imported from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Target Support Files/Toast/Toast-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h:20:28: note: 'NSTextAlignment' has been marked as being introduced in iOS 6.0 here, but the deployment target is iOS 4.3.0 typedef NS_ENUM(NSInteger, NSTextAlignment) { ^ /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Toast/Toast/UIView+Toast.m:478:33: note: enclose 'NSTextAlignmentLeft' in an @available check to silence this warning self.messageAlignment = NSTextAlignmentLeft; ^~~~~~~ 6 warnings generated. /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:101:9: warning: 'dispatch_queue_set_specific' is only available on iOS 5.0 or newer [-Wunguarded-availability] dispatch_queue_set_specific(_queue, kDispatchQueueSpecificKey, (__bridge void )self, NULL); ^~~~~~~ In module 'Foundation' imported from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.h:9: In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: In module 'Dispatch' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/dispatch/queue.h:1498:1: note: 'dispatch_queue_set_specific' has been marked as being introduced in iOS 5.0 here, but the deployment target is iOS 4.3.0 dispatch_queue_set_specific(dispatch_queue_t queue, const void key, ^ /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:101:9: note: enclose 'dispatch_queue_set_specific' in an @available check to silence this warning dispatch_queue_set_specific(_queue, kDispatchQueueSpecificKey, (bridge void )self, NULL); ^~~~~~~ /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:184:54: warning: 'dispatch_get_specific' is only available on iOS 5.0 or newer [-Wunguarded-availability] FMDatabaseQueue currentSyncQueue = (bridge id)dispatch_get_specific(kDispatchQueueSpecificKey); ^~~~~In module 'Foundation' imported from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.h:9: In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: In module 'Dispatch' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/dispatch/queue.h:1554:1: note: 'dispatch_get_specific' has been marked as being introduced in iOS 5.0 here, but the deployment target is iOS 4.3.0 dispatch_get_specific(const void key); ^ /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:184:54: note: enclose 'dispatch_get_specific' in an @available check to silence this warning FMDatabaseQueue currentSyncQueue = (__bridge id)dispatch_get_specific(kDispatchQueueSpecificKey); ^~~~~2 warnings generated. /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/FMDB/src/fmdb/FMDatabase.m:1486:15: warning: 'sqlite3_wal_checkpoint_v2' is only available on iOS 5.0 or newer [-Wunguarded-availability] int err = sqlite3_wal_checkpoint_v2(_db, dbName, checkpointMode, logFrameCount, checkpointCount); ^~~~~~~~~ In module 'SQLite3' imported from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/FMDB/src/fmdb/FMDatabase.m:8: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/sqlite3.h:8843:16: note: 'sqlite3_wal_checkpoint_v2' has been marked as being introduced in iOS 5.0 here, but the deployment target is iOS 4.3.0 SQLITE_API int sqlite3_wal_checkpoint_v2( ^ /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/FMDB/src/fmdb/FMDatabase.m:1486:15: note: enclose 'sqlite3_wal_checkpoint_v2' in an @available check to silence this warning int err = sqlite3_wal_checkpoint_v2(_db, dbName, checkpointMode, logFrameCount, checkpointCount); ^~~~~~~~~ 1 warning generated. /Users/deybys/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-7.0.1/ios/Classes/FLTFirebaseAnalyticsPlugin.m:49:19: warning: 'setScreenName:screenClass:' is deprecated: Use +[FIRAnalytics logEventWithName:kFIREventScreenView parameters:] instead. [-Wdeprecated-declarations] [FIRAnalytics setScreenName:screenName screenClass:screenClassOverride]; ^ In module 'FirebaseAnalytics' imported from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Headers/Private/Firebase/Firebase.h:22: /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h:128:5: note: 'setScreenName:screenClass:' has been explicitly marked deprecated here DEPRECATED_MSG_ATTRIBUTE( ^ In module 'Darwin' imported from /Users/deybys/Documents/alvaro_p_flutter/inspiria-pro/inspiria/ios/Pods/Headers/Private/FirebaseAuth/FIRAuth.h:17: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/AvailabilityMacros.h:183:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'define DEPRECATED_MSG_ATTRIBUTE(s) attribute((deprecated(s)))
Could not build the application for the simulator. Error launching application on iPhone 12 Pro Max. Exited (sigterm)
`