gpt4 book ai didi

ios - IMFPush Bluemix 无法在 Swift 2.2 上运行(i386 错误)

转载 作者:行者123 更新时间:2023-11-30 13:34:43 25 4
gpt4 key购买 nike

谁知道如何解决这个错误?我无法使用 IMFPush 库编译我的项目 =/

ld: warning: ignoring file /Users/kersul/Develop/Grabit_iOS/Pods/IMFPush/Frameworks/IMFPush.framework/IMFPush, missing required architecture i386 in file /Users/kersul/Develop/Grabit_iOS/Pods/IMFPush/Frameworks/IMFPush.framework/IMFPush (2 slices) Undefined symbols for architecture i386:
"_OBJC_CLASS_$_IMFPushClient", referenced from: type metadata accessor for __ObjC.IMFPushClient in AppDelegate.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

有几个问题似乎可以解决这个问题。

我首先看一下 Jordan's advice here并确保框架已正确添加到您的项目中。另外确保框架 has been linked correctly

如果两者都不能解决问题,那么还要查看 answer posed by Allen 并检查您的 .m 文件是否列在您的编译源下。

也就是说,iOS 模拟器使用的是 i386 架构。请注意,模拟器无法复制推送功能,因此即使您能够为其编译 IMFPush,它也无法正常运行。

关于ios - IMFPush Bluemix 无法在 Swift 2.2 上运行(i386 错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36208122/

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