繁体   English   中英

为 iOS 创建颤振应用程序时出错 - 错误(Xcode):未定义符号

[英]Error creating flutter app for iOS - Error (Xcode): Undefined symbol

--------------------------- 错误消息:

无法构建 iOS 应用程序 Xcode 构建的错误输出:↳ 2022-06-19 14:50:18.899 xcodebuild[39895:226134] 已请求但未找到标识符为 Xcode.IDEKit.ExtensionSentinelHostApplications 的扩展点,用于扩展 Xcode.DebuggerFoundation.AppExtensionHosts。插件 com.apple.dt.IDEWatchSupportCore 的 watchOS 2022-06-19 14:50:18.899 xcodebuild[39895:226134] 已请求但未找到带有标识符 Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier 的扩展点,用于扩展 Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap。插件 com.apple.dt.IDEWatchSupportCore 的 watchOS 2022-06-19 14:50:19.885 xcodebuild[39895:226172] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-20038 /DTDeviceKitBase/D TDKRemoteDeviceData.m:373 详细信息:(null) 来自 00008020-0008459A36B8003A 的设备类型在调用 -platform 时为 NULL。 对象:<DTDKMobileDeviceToken: 0x11d73a5d0> 方法:-platform 线程:<NSThread: 0x600003501ec0>{number = 6, name = (null)} 请在https://feedbackassistant.apple.com提交错误,并附上此警告消息和任何有用的信息您可以提供的信息。 ** 构建失败 **

Xcode 的输出:↳ 将结果包写入路径:/var/folders/xk/24s15qjs3js_pbq9z13b7km00000gn/T/flutter_tools.XpLwrY/flutter_ios_build_temp_d irundHWt/temporary_xcresult_bundle

/Users/pivajr/development/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_apple-1.2.2/ios
/Classes/GeolocatorPlugin.m:157:21: warning: 'openURL:' is deprecated: first deprecated in iOS
10.0 [-Wdeprecated-declarations]
                    openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
                    ^~~~~~~
                    openURL:options:completionHandler:
In module 'UIKit' imported from /Users/pivajr/Desktop/siscop/siscop-app/ios/Pods/Target Support
Files/geolocator_apple/geolocator_apple-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS1
5.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:124:1: note:
'openURL:' has been explicitly marked deprecated here
- (BOOL)openURL:(NSURL*)url
API_DEPRECATED_WITH_REPLACEMENT("openURL:options:completionHandler:", ios(2.0, 10.0))
NS_EXTENSION_UNAVAILABLE_IOS("");
^
1 warning generated.
/Users/pivajr/development/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_apple-1.2.2/ios
/Classes/GeolocatorPlugin.m:157:21: warning: 'openURL:' is deprecated: first deprecated in iOS
10.0 [-Wdeprecated-declarations]
                    openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
                    ^~~~~~~
                    openURL:options:completionHandler:
In module 'UIKit' imported from /Users/pivajr/Desktop/siscop/siscop-app/ios/Pods/Target Support
Files/geolocator_apple/geolocator_apple-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS1
5.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:124:1: note:
'openURL:' has been explicitly marked deprecated here
- (BOOL)openURL:(NSURL*)url
API_DEPRECATED_WITH_REPLACEMENT("openURL:options:completionHandler:", ios(2.0, 10.0))
NS_EXTENSION_UNAVAILABLE_IOS("");
^
1 warning generated.
/Users/pivajr/development/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.8.1+7/ios/Classes
/CameraPlugin.m:596:13: warning: 'OSAtomicCompareAndSwapPtrBarrier' is deprecated: first
deprecated in iOS 10.0 - Use atomic_compare_exchange_strong() from <stdatomic.h> instead
[-Wdeprecated-declarations]
    while (!OSAtomicCompareAndSwapPtrBarrier(old, newBuffer, (void **)&_latestPixelBuffer)) {
            ^
In module 'Darwin' imported from
/Users/pivajr/development/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.8.1+7/ios/Classes
/CameraPlugin.m:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS1
5.5.sdk/usr/include/libkern/OSAtomicDeprecated.h:548:6: note:
'OSAtomicCompareAndSwapPtrBarrier' has been explicitly marked deprecated here
bool    OSAtomicCompareAndSwapPtrBarrier( void *__oldValue, void *__newValue, void * volatile
*__theValue );
        ^
/Users/pivajr/development/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.8.1+7/ios/Classes
/CameraPlugin.m:806:11: warning: 'OSAtomicCompareAndSwapPtrBarrier' is deprecated: first
deprecated in iOS 10.0 - Use atomic_compare_exchange_strong() from <stdatomic.h> instead
[-Wdeprecated-declarations]
  while (!OSAtomicCompareAndSwapPtrBarrier(pixelBuffer, nil, (void **)&_latestPixelBuffer)) {
          ^
In module 'Darwin' imported from
/Users/pivajr/development/flutter/.pub-cache/hosted/pub.dartlang.org/camera-0.8.1+7/ios/Classes
/CameraPlugin.m:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS1
5.5.sdk/usr/include/libkern/OSAtomicDeprecated.h:548:6: note:
'OSAtomicCompareAndSwapPtrBarrier' has been explicitly marked deprecated here
bool    OSAtomicCompareAndSwapPtrBarrier( void *__oldValue, void *__newValue, void * volatile
*__theValue );
        ^
2 warnings generated.
2 warnings generated.
In file included from
/Users/pivajr/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0
/ios/Classes/MLKVisionImage+FlutterPlugin.m:1:
/Users/pivajr/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0
/ios/Classes/GoogleMlKitCommonsPlugin.h:12:22: warning: unused function 'getFlutterError'
[-Wunused-function]
static FlutterError *getFlutterError(NSError *error) {
                     ^
1 warning generated.
In file included from
/Users/pivajr/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0
/ios/Classes/GoogleMlKitCommonsPlugin.m:1:
/Users/pivajr/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0
/ios/Classes/GoogleMlKitCommonsPlugin.h:12:22: warning: unused function 'getFlutterError'
[-Wunused-function]
static FlutterError *getFlutterError(NSError *error) {
                     ^
1 warning generated.
In file included from
/Users/pivajr/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0
/ios/Classes/MLKVisionImage+FlutterPlugin.m:1:
/Users/pivajr/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0
/ios/Classes/GoogleMlKitCommonsPlugin.h:12:22: warning: unused function 'getFlutterError'
[-Wunused-function]
static FlutterError *getFlutterError(NSError *error) {
                     ^
1 warning generated.
In file included from
/Users/pivajr/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0
/ios/Classes/GoogleMlKitCommonsPlugin.m:1:
/Users/pivajr/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_commons-0.2.0
/ios/Classes/GoogleMlKitCommonsPlugin.h:12:22: warning: unused function 'getFlutterError'
[-Wunused-function]
static FlutterError *getFlutterError(NSError *error) {
                     ^
1 warning generated.
ld: warning: ignoring file
/Users/pivajr/Desktop/siscop/siscop-app/ios/Pods/MLImage/Frameworks/MLImage.framework/MLImage,
file is universal (x86_64,arm64) but does not contain the armv7 architecture:
/Users/pivajr/Desktop/siscop/siscop-app/ios/Pods/MLImage/Frameworks/MLImage.framework/MLImage
ld: warning: ignoring file
/Users/pivajr/Desktop/siscop/siscop-app/ios/Pods/MLKitCommon/Frameworks/MLKitCommon.framework/M
LKitCommon, file is universal (x86_64,arm64) but does not contain the armv7 architecture:
/Users/pivajr/Desktop/siscop/siscop-app/ios/Pods/MLKitCommon/Frameworks/MLKitCommon.framework/M
LKitCommon
ld: warning: ignoring file
/Users/pivajr/Desktop/siscop/siscop-app/ios/Pods/MLKitFaceDetection/Frameworks/MLKitFaceDetecti
on.framework/MLKitFaceDetection, file is universal (x86_64,arm64) but does not contain the
armv7 architecture:
/Users/pivajr/Desktop/siscop/siscop-app/ios/Pods/MLKitFaceDetection/Frameworks/MLKitFaceDetecti
on.framework/MLKitFaceDetection
ld: warning: ignoring file
/Users/pivajr/Desktop/siscop/siscop-app/ios/Pods/MLKitVision/Frameworks/MLKitVision.framework/M
LKitVision, file is universal (x86_64,arm64) but does not contain the armv7 architecture:
/Users/pivajr/Desktop/siscop/siscop-app/ios/Pods/MLKitVision/Frameworks/MLKitVision.framework/M
LKitVision
Undefined symbols for architecture armv7:
  "_MLKFaceLandmarkTypeRightCheek", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceLandmarkTypeMouthRight", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceLandmarkTypeMouthLeft", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceLandmarkTypeLeftEye", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceLandmarkTypeLeftCheek", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceLandmarkTypeRightEar", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceContourTypeNoseBottom", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceContourTypeUpperLipTop", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceLandmarkTypeMouthBottom", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKModelDownloadDidFailNotification", referenced from:
      -[GenericModelManager manageModel:call:result:] in
      google_mlkit_commons(GenericModelManager.o)
      -[GenericModelManager receiveTestNotification:] in
      google_mlkit_commons(GenericModelManager.o)
  "_MLKFaceContourTypeUpperLipBottom", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceContourTypeRightEyebrowBottom", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceContourTypeLeftEyebrowTop", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceContourTypeRightEyebrowTop", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceContourTypeRightEye", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceContourTypeNoseBridge", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceContourTypeLeftCheek", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_OBJC_CLASS_$_MLKFaceDetector", referenced from:
      objc-class-ref in google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceContourTypeLowerLipTop", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceLandmarkTypeLeftEar", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceContourTypeLowerLipBottom", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceContourTypeLeftEyebrowBottom", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceContourTypeLeftEye", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceContourTypeFace", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_OBJC_CLASS_$_MLKVisionImage", referenced from:
      objc-class-ref in google_mlkit_commons(MLKVisionImage+FlutterPlugin.o)
      __OBJC_$_CATEGORY_MLKVisionImage_$_FlutterPlugin in
      google_mlkit_commons(MLKVisionImage+FlutterPlugin.o)
      objc-class-ref in google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceLandmarkTypeRightEye", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceLandmarkTypeNoseBase", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKFaceContourTypeRightCheek", referenced from:
      ___57-[GoogleMlKitFaceDetectionPlugin handleDetection:result:]_block_invoke in
      google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_MLKModelDownloadDidSucceedNotification", referenced from:
      -[GenericModelManager manageModel:call:result:] in
      google_mlkit_commons(GenericModelManager.o)
      -[GenericModelManager receiveTestNotification:] in
      google_mlkit_commons(GenericModelManager.o)
  "_OBJC_CLASS_$_MLKModelDownloadConditions", referenced from:
      objc-class-ref in google_mlkit_commons(GenericModelManager.o)
  "_OBJC_CLASS_$_MLKFaceDetectorOptions", referenced from:
      objc-class-ref in google_mlkit_face_detection(GoogleMlKitFaceDetectionPlugin.o)
  "_OBJC_CLASS_$_MLKModelManager", referenced from:
      objc-class-ref in google_mlkit_commons(GenericModelManager.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order

Result bundle written to path:
    /var/folders/xk/24s15qjs3js_pbq9z13b7km00000gn/T/flutter_tools.XpLwrY/flutter_ios_build_temp_dirundHWt/temporary_xcresult_bundle

错误(Xcode):未定义符号:_MLKFaceLandmarkTypeRightChe

错误(Xcode):未定义符号:_MLKFaceLandmarkTypeMouthRight

错误(Xcode):未定义符号:_MLKFaceLandmarkTypeMouthLeft

错误(Xcode):未定义符号:_MLKFaceLandmarkTypeLeftEye

错误(Xcode):未定义符号:_MLKFaceLandmarkTypeLeftCheek

错误(Xcode):未定义符号:_MLKFaceLandmarkTypeRightEar

错误(Xcode):未定义符号:_MLKFaceContourTypeNoseBottom

错误(Xcode):未定义符号:_MLKFaceContourTypeUpperLipTop

错误(Xcode):未定义符号:_MLKFaceLandmarkTypeMouthBottom

错误(Xcode):未定义符号:_MLKModelDownloadDidFailNotification

错误(Xcode):未定义符号:_MLKFaceContourTypeUpperLipBottom

错误(Xcode):未定义符号:_MLKFaceContourTypeRightEyebrowBottom

错误(Xcode):未定义符号:_MLKFaceContourTypeLeftEyebrowTop

错误(Xcode):未定义符号:_MLKFaceContourTypeRightEyebrowTop

错误(Xcode):未定义符号:_MLKFaceContourTypeRightEye

错误(Xcode):未定义符号:_MLKFaceContourTypeNoseBridge

错误(Xcode):未定义符号:_MLKFaceContourTypeLeftCheek

错误(Xcode):未定义符号: OBJC_CLASS $_MLKFaceDetector

错误(Xcode):未定义符号:_MLKFaceContourTypeLowerLipTop

错误(Xcode):未定义符号:_MLKFaceLandmarkTypeLeftEar

错误(Xcode):未定义符号:_MLKFaceContourTypeLowerLipBottom

错误(Xcode):未定义符号:_MLKFaceContourTypeLeftEyebrowBottom

错误(Xcode):未定义符号:_MLKFaceContourTypeLeftEye

错误(Xcode):未定义符号:_MLKFaceContourTypeFace

错误(Xcode):未定义符号: OBJC_CLASS $_MLKVisionImage

错误(Xcode):未定义符号:_MLKFaceLandmarkTypeRightEye

错误(Xcode):未定义符号:_MLKFaceLandmarkTypeNoseBase

错误(Xcode):未定义符号:_MLKFaceContourTypeRightCheek

错误(Xcode):未定义符号:_MLKModelDownloadDidSucceedNotification

错误(Xcode):未定义符号: OBJC_CLASS $_MLKModelDownloadConditions

错误(Xcode):未定义符号: OBJC_CLASS $_MLKFaceDetectorOptions

错误(Xcode):未定义符号: OBJC_CLASS $_MLKModelManager

为设备构建时遇到错误。 -------------------------------------------------- - 错误信息结束。

知道会发生什么以及如何解决吗? 谢!

删除 Podfile.lock、pods 文件夹和 .symlinks 文件夹。 现在运行pod install打开 xcode 中的 runner.workspace 文件并构建一次。 一旦它在 xcode 中成功构建,它也应该通过 build ipa 开始工作

删除 podfile.lock、pods 文件夹和 .symlinks 文件夹对我不起作用。 我没有为 armv7 设备添加设置,将设置添加到 Podfile 对我有用。

https://github.com/bharat-biradar/Google-Ml-Kit-plugin/blob/master/README.md

https://github.com/bharat-biradar/Google-Ml-Kit-plugin/issues/97

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM