The setup worked perfectly previously but now it giving me this error. Not sure why.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_WKWebViewConfiguration", referenced from:
objc-class-ref in OneSignal(OneSignal-x86_64-master.o)
"_OBJC_CLASS_$_WKWebView", referenced from:
objc-class-ref in OneSignal(OneSignal-x86_64-master.o)
"_SCNetworkReachabilityGetFlags", referenced from:
-[OneSignalReachability connectionRequired] in OneSignal(OneSignal-x86_64-master.o)
-[OneSignalReachability currentReachabilityStatus] in OneSignal(OneSignal-x86_64-master.o)
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[OneSignalReachability reachabilityWithAddress:] in OneSignal(OneSignal-x86_64-master.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Output in Visual Studio
└─Compiling, linking and signing... 3.4s
Xcode build done. 44.8s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_
engine-3.2.1/ios/Classes/Base/Extensions.swift:117:22: warning: 'delay' is
deprecated
"delay": delay,
^
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_
engine-3.2.1/ios/Classes/Base/RtcEngine.swift:693:31: warning:
'setLocalVoiceChanger' is deprecated: use setAudioEffectPreset or
setVoiceBeautifierPreset instead.
callback.code(engine?.setLocalVoiceChanger(AgoraAudioVoiceChanger(rawVal
ue: params["voiceChanger"] as! Int)!))
^
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/agora_rtc_
engine-3.2.1/ios/Classes/Base/RtcEngine.swift:697:31: warning:
'setLocalVoiceReverbPreset' is deprecated: use setAudioEffectPreset or
setVoiceBeautifierPreset instead.
callback.code(engine?.setLocalVoiceReverbPreset(AgoraAudioReverbPreset(r
awValue: params["preset"] as! Int)!))
^
While building module 'OneSignal' imported from
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_
flutter-2.6.2/ios/Classes/OneSignalPlugin.h:29:
In file included from <module-includes>:1:
/Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:561:4: warning:
'UNMutableNotificationContent' is only available on iOS 10.0 or newer
[-Wunguarded-availability]
+
(UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotific
ationRequest*)request
withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent
;
^
In module 'UserNotifications' imported from /Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:45:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/De
veloper/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications
.framework/Headers/UNNotificationContent.h:63:12: note:
'UNMutableNotificationContent' has been marked as being introduced in iOS 10.0
here, but the deployment target is iOS 8.0.0
@interface UNMutableNotificationContent : UNNotificationContent
^
While building module 'OneSignal' imported from
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_
flutter-2.6.2/ios/Classes/OneSignalPlugin.h:29:
In file included from <module-includes>:1:
/Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:561:1: note: annotate
'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an
availability attribute to silence this warning
+
(UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotific
ationRequest*)request
withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent
;
^
API_AVAILA
BLE(ios(10
.0))
/Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:561:74: warning:
'UNNotificationRequest' is only available on iOS 10.0 or newer
[-Wunguarded-availability]
+
(UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotific
ationRequest*)request
withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent
;
^
In module 'UserNotifications' imported from /Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:45:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/De
veloper/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications
.framework/Headers/UNNotificationRequest.h:16:12: note: 'UNNotificationRequest'
has been marked as being introduced in iOS 10.0 here, but the deployment target
is iOS 8.0.0
@interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
^
While building module 'OneSignal' imported from
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_
flutter-2.6.2/ios/Classes/OneSignalPlugin.h:29:
In file included from <module-includes>:1:
/Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:561:1: note: annotate
'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an
availability attribute to silence this warning
+
(UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotific
ationRequest*)request
withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent
;
^
API_AVAILA
BLE(ios(10
.0))
/Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:561:137: warning:
'UNMutableNotificationContent' is only available on iOS 10.0 or newer
[-Wunguarded-availability]
+
(UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotific
ationRequest*)request
withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent
;
^
In module 'UserNotifications' imported from /Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:45:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/De
veloper/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications
.framework/Headers/UNNotificationContent.h:63:12: note:
'UNMutableNotificationContent' has been marked as being introduced in iOS 10.0
here, but the deployment target is iOS 8.0.0
@interface UNMutableNotificationContent : UNNotificationContent
^
While building module 'OneSignal' imported from
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_
flutter-2.6.2/ios/Classes/OneSignalPlugin.h:29:
In file included from <module-includes>:1:
/Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:561:1: note: annotate
'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an
availability attribute to silence this warning
+
(UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotific
ationRequest*)request
withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent
;
^
API_AVAILA
BLE(ios(10
.0))
/Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:562:4: warning:
'UNMutableNotificationContent' is only available on iOS 10.0 or newer
[-Wunguarded-availability]
+
(UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotifica
tionRequest*)request
withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent
;
^
In module 'UserNotifications' imported from /Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:45:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/De
veloper/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications
.framework/Headers/UNNotificationContent.h:63:12: note:
'UNMutableNotificationContent' has been marked as being introduced in iOS 10.0
here, but the deployment target is iOS 8.0.0
@interface UNMutableNotificationContent : UNNotificationContent
^
While building module 'OneSignal' imported from
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_
flutter-2.6.2/ios/Classes/OneSignalPlugin.h:29:
In file included from <module-includes>:1:
/Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:562:1: note: annotate
'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an
availability attribute to silence this warning
+
(UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotifica
tionRequest*)request
withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent
;
^
API_AVAILA
BLE(ios(10
.0))
/Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:562:73: warning:
'UNNotificationRequest' is only available on iOS 10.0 or newer
[-Wunguarded-availability]
+
(UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotifica
tionRequest*)request
withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent
;
^
In module 'UserNotifications' imported from /Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:45:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/De
veloper/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications
.framework/Headers/UNNotificationRequest.h:16:12: note: 'UNNotificationRequest'
has been marked as being introduced in iOS 10.0 here, but the deployment target
is iOS 8.0.0
@interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
^
While building module 'OneSignal' imported from
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_
flutter-2.6.2/ios/Classes/OneSignalPlugin.h:29:
In file included from <module-includes>:1:
/Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:562:1: note: annotate
'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an
availability attribute to silence this warning
+
(UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotifica
tionRequest*)request
withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent
;
^
API_AVAILA
BLE(ios(10
.0))
/Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:562:136: warning:
'UNMutableNotificationContent' is only available on iOS 10.0 or newer
[-Wunguarded-availability]
+
(UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotifica
tionRequest*)request
withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent
;
^
In module 'UserNotifications' imported from /Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:45:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/De
veloper/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications
.framework/Headers/UNNotificationContent.h:63:12: note:
'UNMutableNotificationContent' has been marked as being introduced in iOS 10.0
here, but the deployment target is iOS 8.0.0
@interface UNMutableNotificationContent : UNNotificationContent
^
While building module 'OneSignal' imported from
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal_
flutter-2.6.2/ios/Classes/OneSignalPlugin.h:29:
In file included from <module-includes>:1:
/Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/F
ramework/OneSignal.framework/Headers/OneSignal.h:562:1: note: annotate
'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an
availability attribute to silence this warning
+
(UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotifica
tionRequest*)request
withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent
;
^
API_AVAILA
BLE(ios(10
.0))
6 warnings generated.
6 warnings generated.
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/permission
_handler-5.0.0/ios/Classes/strategies/NotificationPermissionStrategy.m:71:5:
warning: 'UIRemoteNotificationType' is deprecated: first deprecated in iOS 8.0 -
Use UserNotifications Framework's UNAuthorizationOptions for user notifications
and registerForRemoteNotifications for receiving remote notifications instead.
[-Wdeprecated-declarations]
UIRemoteNotificationType type = [[UIApplication sharedApplication]
enabledRemoteNotificationTypes];
^
In module 'UIKit' imported from /Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/Target Support
Files/permission_handler/permission_handler-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/De
veloper/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/H
eaders/UIApplication.h:69:32: note: 'UIRemoteNotificationType' has been
explicitly marked deprecated here
typedef NS_OPTIONS(NSUInteger, UIRemoteNotificationType) {
^
/Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/permission
_handler-5.0.0/ios/Classes/strategies/NotificationPermissionStrategy.m:71:72:
warning: 'enabledRemoteNotificationTypes' is deprecated: first deprecated in iOS
8.0 - Use -[UIApplication isRegisteredForRemoteNotifications] and
UserNotifications Framework's -[UNUserNotificationCenter
getNotificationSettingsWithCompletionHandler:] to retrieve user-enabled remote
notification and user notification settings [-Wdeprecated-declarations]
UIRemoteNotificationType type = [[UIApplication sharedApplication]
enabledRemoteNotificationTypes];
^
In module 'UIKit' imported from /Users/Raymond
Tucker/AndroidStudioProjects/yurr/user/ios/Pods/Target Support
Files/permission_handler/permission_handler-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/De
veloper/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/H
eaders/UIApplication.h:229:1: note: 'enabledRemoteNotificationTypes' has been
explicitly marked deprecated here
- (UIRemoteNotificationType)enabledRemoteNotificationTypes API_DEPRECATED("Use
-[UIApplication isRegisteredForRemoteNotifications] and UserNotifications
Framework's -[UNUserNotificationCenter
getNotificationSettingsWithCompletionHandler:] to retrieve user-enabled remote
notification and user notification settings", ios(3.0, 8.0))
API_UNAVAILABLE(tvos);
^
2 warnings generated.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_WKWebViewConfiguration", referenced from:
objc-class-ref in OneSignal(OneSignal-x86_64-master.o)
"_OBJC_CLASS_$_WKWebView", referenced from:
objc-class-ref in OneSignal(OneSignal-x86_64-master.o)
"_SCNetworkReachabilityGetFlags", referenced from:
-[OneSignalReachability connectionRequired] in
OneSignal(OneSignal-x86_64-master.o)
-[OneSignalReachability currentReachabilityStatus] in
OneSignal(OneSignal-x86_64-master.o)
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[OneSignalReachability reachabilityWithAddress:] in
OneSignal(OneSignal-x86_64-master.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
The setup worked perfectly previously but now it giving me this error. Not sure why.
Output in Visual Studio