symbol(s) not found for architecture armv7 (when running Archive in Xcode and Python3)(未找到架构 armv7 的符号(在 Xcode 和 Python3 中运行存档时))
问题描述
当我尝试创建存档失败的构建.该项目在IOS模拟器上运行正常,在python3 + kivy-ios上运行,所有警告和错误:
When I try to create an archive failed build. The project run ok on IOS simulator and run over python3 + kivy-ios and there are all warnings and errors:
ld: warning: directory not found for option '-L/Users/XX/kivy-ios/glomarkhome-ios/../build/lib'
ld: warning: directory not found for option '-F/Users/XX/kivy-ios/dist/frameworks'
ld: warning: ignoring file /Users/XX/kivy-ios/dist/lib/libsdl2_ttf.a, missing required architecture armv7 in file /Users/XX/kivy-ios/dist/lib/libsdl2_ttf.a (2 slices)
ld: warning: ignoring file /Users/XX/kivy-ios/dist/lib/libpyobjus.a, missing required architecture armv7 in file /Users/XX/kivy-ios/dist/lib/libpyobjus.a (2 slices)
ld: warning: ignoring file /Users/XX/kivy-ios/dist/lib/libffi.a, missing required architecture armv7 in file /Users/XX/kivy-ios/dist/lib/libffi.a (2 slices)
ld: warning: ignoring file /Users/XX/kivy-ios/dist/lib/libfreetype.a, missing required architecture armv7 in file /Users/XX/kivy-ios/dist/lib/libfreetype.a (2 slices)
ld: warning: ignoring file /Users/XX/kivy-ios/dist/lib/libsdl2_image.a, missing required architecture armv7 in file /Users/XX/kivy-ios/dist/lib/libsdl2_image.a (2 slices)
ld: warning: ignoring file /Users/XX/kivy-ios/dist/lib/libsdl2_mixer.a, missing required architecture armv7 in file /Users/XX/kivy-ios/dist/lib/libsdl2_mixer.a (2 slices)
ld: warning: ignoring file /Users/XX/kivy-ios/dist/lib/libcrypto.a, missing required architecture armv7 in file /Users/XX/kivy-ios/dist/lib/libcrypto.a (2 slices)
ld: warning: ignoring file /Users/XX/kivy-ios/dist/lib/libssl.a, missing required architecture armv7 in file /Users/XX/kivy-ios/dist/lib/libssl.a (2 slices)
ld: warning: ignoring file /Users/XX/kivy-ios/dist/lib/libsdl2.a, missing required architecture armv7 in file /Users/XX/kivy-ios/dist/lib/libsdl2.a (2 slices)
ld: warning: ignoring file /Users/XX/kivy-ios/dist/lib/libios.a, missing required architecture armv7 in file /Users/XX/kivy-ios/dist/lib/libios.a (2 slices)
ld: warning: ignoring file /Users/XX/kivy-ios/dist/lib/libkivy.a, missing required architecture armv7 in file /Users/XX/kivy-ios/dist/lib/libkivy.a (2 slices)
ld: warning: ignoring file /Users/XX/kivy-ios/dist/lib/libpython3.a, missing required architecture armv7 in file /Users/XX/kivy-ios/dist/lib/libpython3.a (2 slices)
Undefined symbols for architecture armv7:
"_PyEval_InitThreads", referenced from:
_SDL_main in main.o
"_PyMem_RawMalloc", referenced from:
_SDL_main in main.o
"_PyRun_SimpleFileExFlags", referenced from:
_SDL_main in main.o
"_PyRun_SimpleStringFlags", referenced from:
_SDL_main in main.o
_load_custom_builtin_importer in main.o
"_PySys_SetArgv", referenced from:
_SDL_main in main.o
"_Py_DecodeLocale", referenced from:
_SDL_main in main.o
"_Py_Finalize", referenced from:
_SDL_main in main.o
"_Py_Initialize", referenced from:
_SDL_main in main.o
"_main", referenced from:
implicit entry/start for main executable
(maybe you meant: _SDL_main)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
所有库都包含在构建阶段 > 链接二进制有什么想法吗?
All librareis are include on Build Phases > Link Binary Any idea?
推荐答案
我解决了我的问题,真的很简单.我把 Build Settings > Architectures >Architectures: $(ARCHS_STANDARD_64_BIT)
I solved my problem and it was really simple. I put on Build Settings > Architectures >Architectures: $(ARCHS_STANDARD_64_BIT)
这篇关于未找到架构 armv7 的符号(在 Xcode 和 Python3 中运行存档时)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:未找到架构 armv7 的符号(在 Xcode 和 Python3 中运行存档时)
基础教程推荐
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01