M1 应用构建 iOS Flutter 失败 - AMSupportURLConnectionDelegate 位置和地理定位器包
M1 App Build iOS Failed Flutter - AMSupportURLConnectionDelegate Location & Geolocator Packages
请帮忙,我刚刚支付了一些开发工作的费用并取回了应用程序。开发人员声称他们 运行 安装该应用程序没有问题。我无法在我的机器上将其设置为 运行。在开发人员通过块添加状态管理之前,该应用已 运行ning。
看起来像 package/cocoapods/Xcode 错误,应该可以使用最新版本解决,但我无法清除这些错误。每次我接近时,我都会再次 运行,所有错误都会立即返回。我处于无休止的故障排除循环中,无法解决。我是初学者,无力支付开发人员 50 美元来解决应用程序为何无法在我的计算机上运行的问题 运行,因此在我解决此问题之前,我的工具停滞不前。
我已经重新安装了 Cocoapods。
我试过删除 PODS 文件。
我试过使用旧的 PODS 文件。
我已经确保它是安装了 ffi arch 的 M1 的正确版本。
我已经更新了我的开发者证书。
将 Arch 86 粘贴到 Xcode 设置中。
将版本设置为最新以进行部署。
我什至完全清除了我的 Mac 并从头开始重新安装了所有环境,但错误仍然存在。
上周我完成了 flutter clean 和 Flutter pub get 以及 flutter build iOS 和 flutter 运行 1000 次。
我无法为 iOS 构建此应用程序,我失去了理智。将近 2 周以来,我一直在努力达到 运行!
开发人员花了一个小时和我一起,他们要求我做的就是我通过在线搜索已知问题已经完成的所有事情。
我没主意了。我需要帮助来解决这个问题。
请帮忙
Error output from Xcode build:
↳
objc[19329]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x20c172c10) and
/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1141502b8). One of the two will be used. Which one is undefined.
objc[19329]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x20c172c60) and
/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x114150308). One of the two will be used. Which one is undefined.
2021-07-22 22:34:26.062 xcodebuild[19329:246509] CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called
** BUILD FAILED **
Xcode's output:
↳
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/ios/Classes/LocationPlugin.m:176:13: warning: 'UIAlertView' is deprecated:
first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
[-Wdeprecated-declarations]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
^
In module 'UIKit' imported from /Users/tlcf/Development/simposi-main/ios/Pods/Target Support Files/location/location-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAler
tView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
^
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/ios/Classes/LocationPlugin.m:176:48: warning: 'UIAlertView' is deprecated:
first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
[-Wdeprecated-declarations]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
^
In module 'UIKit' imported from /Users/tlcf/Development/simposi-main/ios/Pods/Target Support Files/location/location-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAler
tView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
^
2 warnings generated.
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/ios/Classes/LocationPlugin.m:176:13: warning: 'UIAlertView' is deprecated:
first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
[-Wdeprecated-declarations]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
^
In module 'UIKit' imported from /Users/tlcf/Development/simposi-main/ios/Pods/Target Support Files/location/location-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAler
tView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
^
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/ios/Classes/LocationPlugin.m:176:48: warning: 'UIAlertView' is deprecated:
first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
[-Wdeprecated-declarations]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
^
In module 'UIKit' imported from /Users/tlcf/Development/simposi-main/ios/Pods/Target Support Files/location/location-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAler
tView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
^
2 warnings generated.
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-7.3.0/ios/Classes/GeolocatorPlugin.m:156:55: error: expected expression
openURL:options:completionHandler::[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
^
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-7.3.0/ios/Classes/GeolocatorPlugin.m:156:29: error: use of undeclared identifier
'options'
openURL:options:completionHandler::[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
^
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-7.3.0/ios/Classes/GeolocatorPlugin.m:156:37: error: use of undeclared identifier
'completionHandler'
openURL:options:completionHandler::[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
^
3 errors generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
/Users/tlcf/Development/simposi-main/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of
supported deployment target versions is 9.0 to 14.5.99. (in target 'Flutter' from project 'Pods')
It appears that your application still contains the default signing identifier.
Try replacing 'com.example' with your signing id in Xcode:
open ios/Runner.xcworkspace
Encountered error while building for device.
已解决。在我聘请开发人员之前,我回到了上一个工作版本,它运行得很好。所以我将他们的 lib 粘贴到……然后出错了。他们查看了错误,这是因为我需要粘贴 intl 文件,然后在 Xcode 中修复几个设置。 None 我们知道为什么它只在我的电脑上出错,或者为什么将他们的 lib 粘贴到我的最后一个工作副本中有效,但它已解决。我怀疑这是 Git 冲突,因为 Xcode 的最新更新,但我们真的不知道为什么。不过已经解决了。
感谢那些试图提供帮助的人。
请运行xCode中的应用程序,你会在那里得到正确的错误。
在我的情况下,它是在
的帮助下修复的
请帮忙,我刚刚支付了一些开发工作的费用并取回了应用程序。开发人员声称他们 运行 安装该应用程序没有问题。我无法在我的机器上将其设置为 运行。在开发人员通过块添加状态管理之前,该应用已 运行ning。
看起来像 package/cocoapods/Xcode 错误,应该可以使用最新版本解决,但我无法清除这些错误。每次我接近时,我都会再次 运行,所有错误都会立即返回。我处于无休止的故障排除循环中,无法解决。我是初学者,无力支付开发人员 50 美元来解决应用程序为何无法在我的计算机上运行的问题 运行,因此在我解决此问题之前,我的工具停滞不前。
我已经重新安装了 Cocoapods。 我试过删除 PODS 文件。 我试过使用旧的 PODS 文件。 我已经确保它是安装了 ffi arch 的 M1 的正确版本。 我已经更新了我的开发者证书。 将 Arch 86 粘贴到 Xcode 设置中。 将版本设置为最新以进行部署。 我什至完全清除了我的 Mac 并从头开始重新安装了所有环境,但错误仍然存在。 上周我完成了 flutter clean 和 Flutter pub get 以及 flutter build iOS 和 flutter 运行 1000 次。 我无法为 iOS 构建此应用程序,我失去了理智。将近 2 周以来,我一直在努力达到 运行! 开发人员花了一个小时和我一起,他们要求我做的就是我通过在线搜索已知问题已经完成的所有事情。 我没主意了。我需要帮助来解决这个问题。 请帮忙
Error output from Xcode build:
↳
objc[19329]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x20c172c10) and
/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1141502b8). One of the two will be used. Which one is undefined.
objc[19329]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x20c172c60) and
/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x114150308). One of the two will be used. Which one is undefined.
2021-07-22 22:34:26.062 xcodebuild[19329:246509] CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer implemented and should not be called
** BUILD FAILED **
Xcode's output:
↳
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/ios/Classes/LocationPlugin.m:176:13: warning: 'UIAlertView' is deprecated:
first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
[-Wdeprecated-declarations]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
^
In module 'UIKit' imported from /Users/tlcf/Development/simposi-main/ios/Pods/Target Support Files/location/location-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAler
tView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
^
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/ios/Classes/LocationPlugin.m:176:48: warning: 'UIAlertView' is deprecated:
first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
[-Wdeprecated-declarations]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
^
In module 'UIKit' imported from /Users/tlcf/Development/simposi-main/ios/Pods/Target Support Files/location/location-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAler
tView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
^
2 warnings generated.
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/ios/Classes/LocationPlugin.m:176:13: warning: 'UIAlertView' is deprecated:
first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
[-Wdeprecated-declarations]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
^
In module 'UIKit' imported from /Users/tlcf/Development/simposi-main/ios/Pods/Target Support Files/location/location-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAler
tView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
^
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/ios/Classes/LocationPlugin.m:176:48: warning: 'UIAlertView' is deprecated:
first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
[-Wdeprecated-declarations]
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
^
In module 'UIKit' imported from /Users/tlcf/Development/simposi-main/ios/Pods/Target Support Files/location/location-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAler
tView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
^
2 warnings generated.
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-7.3.0/ios/Classes/GeolocatorPlugin.m:156:55: error: expected expression
openURL:options:completionHandler::[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
^
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-7.3.0/ios/Classes/GeolocatorPlugin.m:156:29: error: use of undeclared identifier
'options'
openURL:options:completionHandler::[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
^
/Users/tlcf/Development/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-7.3.0/ios/Classes/GeolocatorPlugin.m:156:37: error: use of undeclared identifier
'completionHandler'
openURL:options:completionHandler::[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
^
3 errors generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
/Users/tlcf/Development/simposi-main/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of
supported deployment target versions is 9.0 to 14.5.99. (in target 'Flutter' from project 'Pods')
It appears that your application still contains the default signing identifier.
Try replacing 'com.example' with your signing id in Xcode:
open ios/Runner.xcworkspace
Encountered error while building for device.
已解决。在我聘请开发人员之前,我回到了上一个工作版本,它运行得很好。所以我将他们的 lib 粘贴到……然后出错了。他们查看了错误,这是因为我需要粘贴 intl 文件,然后在 Xcode 中修复几个设置。 None 我们知道为什么它只在我的电脑上出错,或者为什么将他们的 lib 粘贴到我的最后一个工作副本中有效,但它已解决。我怀疑这是 Git 冲突,因为 Xcode 的最新更新,但我们真的不知道为什么。不过已经解决了。
感谢那些试图提供帮助的人。
请运行xCode中的应用程序,你会在那里得到正确的错误。
在我的情况下,它是在