humazed / google_map_location_picker

🌍 Map location picker component for flutter Based on google_maps_flutter
Apache License 2.0
206 stars 309 forks source link

Xcode not able to build and throwing 4 erros #104

Closed ziasultan2 closed 4 years ago

ziasultan2 commented 4 years ago

Running Xcode build...

Xcode build done. 7.0s Failed to build iOS app Error output from Xcode build: ↳ 2020-08-31 20:41:41.856 xcodebuild[5124:44695] DTDeviceKit: deviceType from be947003ab8eb9f9faf0f676f538e779f5d09e96 was NULL BUILD FAILED

Xcode's output: ↳ /Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/location_permissions-3.0.0+1/io s/Classes/LocationPermissionsPlugin.m:76:21: error: 'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead. [[UIApplication sharedApplication] ^ In module 'UIKit' imported from /Users/Raymond Tucker/AndroidStudioProjects/pro Zesti/user/ios/Pods/Target Support Files/location_permissions/location_permissions-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSi mulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:113:54: note: property 'sharedApplication' is declared unavailable here @property(class, nonatomic, readonly) UIApplication *sharedApplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead."); ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSi mulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:113:54: note: 'sharedApplication' has been explicitly marked unavailable here /Users/johnsmith/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/location_permissions-3.0.0+1/io s/Classes/LocationPermissionsPlugin.m:77:19: error: 'openURL:options:completionHandler:' is unavailable: not available on iOS (App Extension) openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString] ^ In module 'UIKit' imported from /Users/Raymond Tucker/AndroidStudioProjects/pro Zesti/user/ios/Pods/Target Support Files/location_permissions/location_permissions-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSi mulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:130:1: note: 'openURL:options:completionHandler:' has been explicitly marked unavailable here

Could not build the application for the simulator. Error launching application on iPhone 11 Pro Max.

ziasultan2 commented 4 years ago

sorry it was a xcode issue. It's fixed now