gpt4 book ai didi

ios - "Undefined symbols for architecture i386"问题

转载 作者:可可西里 更新时间:2023-11-01 05:53:06 25 4
gpt4 key购买 nike

我们有一个 android/ios 应用程序,到目前为止在 Xcode 中构建正常。星期一我们将 Xcode 升级到版本 6.1.1。从那时起,我无法在 Xcode 模拟器中构建和运行我们的应用程序。

ld: warning: ignoring file /Users/ACCOUNTZ/Library/Developer/Xcode/DerivedData/Accountz-crbaoextdggovrahxqcivilxfgeh/Build/Products/Debug-iphonesimulator/libCordova.a, file was built for archive which is not the architecture being linked (i386): /Users/ACCOUNTZ/Library/Developer/Xcode/DerivedData/Accountz-crbaoextdggovrahxqcivilxfgeh/Build/Products/Debug-iphonesimulator/libCordova.a
Undefined symbols for architecture i386:
"_CDVLocalNotification", referenced from:
-[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:openURL:sourceApplication:annotation:] in AppDelegate.o
-[CDVInAppBrowser openInSystem:] in CDVInAppBrowser.o
-[AppDelegate application:openURL:sourceApplication:annotation:] in AppDelegate.o
-[CDVInAppBrowser openInSystem:] in CDVInAppBrowser.o
"_CDVRemoteNotification", referenced from:
-[AppDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:] in AppDelegate.o
"_CDVRemoteNotificationError", referenced from:
-[AppDelegate application:didFailToRegisterForRemoteNotificationsWithError:] in AppDelegate.o
"_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_CLASS_$_CDVCommandQueue", referenced from:
_OBJC_CLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_CLASS_$_CDVPlugin", referenced from:
_OBJC_CLASS_$_GAPlugin in GAPlugin.o
_OBJC_CLASS_$_CDVClipboard in CDVClipboard.o
_OBJC_CLASS_$_CDVDevice in CDVDevice.o
_OBJC_CLASS_$_CDVInAppBrowser in CDVInAppBrowser.o
_OBJC_CLASS_$_CDVConnection in CDVConnection.o
"_OBJC_CLASS_$_CDVPluginResult", referenced from:
objc-class-ref in GAPlugin.o
objc-class-ref in CDVClipboard.o
objc-class-ref in CDVDevice.o
objc-class-ref in CDVInAppBrowser.o
objc-class-ref in CDVConnection.o
"_OBJC_CLASS_$_CDVUserAgentUtil", referenced from:
objc-class-ref in CDVInAppBrowser.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
objc-class-ref in CDVDevice.o
"_OBJC_CLASS_$_CDVWebViewDelegate", referenced from:
objc-class-ref in CDVInAppBrowser.o
"_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
_OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_METACLASS_$_CDVPlugin", referenced from:
_OBJC_METACLASS_$_GAPlugin in GAPlugin.o
_OBJC_METACLASS_$_CDVClipboard in CDVClipboard.o
_OBJC_METACLASS_$_CDVDevice in CDVDevice.o
_OBJC_METACLASS_$_CDVInAppBrowser in CDVInAppBrowser.o
_OBJC_METACLASS_$_CDVConnection in CDVConnection.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我已经花了几个小时来弄清楚发生了什么,但似乎超出了我的能力范围。我确实遵循了网上找到的许多建议,但没有结果。我尝试从“构建阶段”部分添加“缺失的”框架,我尝试“仅构建事件架构”,我尝试将此 i386 架构添加到目标和项目的有效架构列表中。
所有这些都没有效果。

我在这里错过了什么?

最佳答案

事实证明,我的应用程序 Cordova 构建缺少架构 (i386)。我的“cordova.a 文件被忽略”(根据我的警告),因为实际上我在 Xcode 升级后丢失了 i386 架构设置。为了解决这个问题,我需要通过点击 Cordova.xcodeproj 文件来添加这个架构。然后我进入 Cordova(不是 Project)build设置,我必须在其中为 Cordova Build 的 Target 和 Project 部分添加我缺少的架构。

我什至不知道这个部分的存在。因此,我多次尝试调整项目本身的架构(通过单击导航器中的项目名称并访问build设置选项卡),但要解决我的问题,我只需要通过单击 Cordova.xcodeproj 文件来执行相同的操作。

link帮助了我,所以你可能也想关注。

关于ios - "Undefined symbols for architecture i386"问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27568742/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com