当我尝试创建存档失败的构建时。该项目可以在IOS模拟器上正常运行,并在python3 + kivy-ios上运行,并且所有警告和错误:
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)
所有库都包括在构建阶段>链接二进制 有想法吗?
答案 0 :(得分:0)
我解决了我的问题,这很简单。我进入“构建设置”>“体系结构”>“体系结构:$(ARCHS_STANDARD_64_BIT)