未找到架构 armv7 的符号(在 Xcode 和 Python3 中运行存档时)

时间:2023-03-22
本文介绍了未找到架构 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 中运行存档时)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

上一篇:如何为 android 调试 Kivy/Kivymd 应用程序? 下一篇:Kivy 应用程序使用 buildozer 成功构建,但在 android 手机上打开时崩溃

相关文章