Open SohrabIranpak opened 1 year ago
Building for simulator is currently not supported, and I wouldn't recommend it. Though, if you do want to help fix it up, feel free to send a PR with your changes.
Can we archive the project without a developer account? In the readme you have said that: ">Archiving to build the release version (which is much faster). If your iOS device is plugged in, you may be able to just Run in Xcode to install and test it. Otherwise, copy the PPSSPP app from build-ios/Debug-iphoneos/PPSSPP.app or build-ios/Release-iphoneos/PPSSPP.app to the /Applications directory on your device and from ssh or MobileTerminal do a "chmod +x PPSSPP" inside the PPSSPP.app directory. If this is the first time you've installed the PPSSPP app, you'll have to respring or restart your device for the icon to show up."
I'm not really sure who wrote that, and I don't provide official support for iOS unless or until Apple relaxes its restrictions on emulators. So you're on your own.
Platform
iOS
Compiler and build tool versions
APPLE CLANG 14.0.3 + CMAKE 3.27.4
Operating system version
macos 13 ventura
Build commands used
i tried to build for simulator with ARCH : x86_64 in release and debug mod mac os 13 in xocde 14.3.1 && mac os 10.15.7 in xcode 12.4 and get same errors when try to build for simulator
What happens
i recieve the following errors:
Showing All Errors Only
Build target PPSSPP of project PPSSPP with configuration Debug note: Run script build phase 'CMake PostBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'PPSSPP' from project 'PPSSPP')
Ld /Users/sohrabiranpak/Desktop/ppsspp/build-ios/Debug-iphonesimulator/PPSSPP.app/PPSSPP normal (in target 'PPSSPP' from project 'PPSSPP') cd /Users/sohrabiranpak/Desktop/ppsspp /Users/sohrabiranpak/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -Xlinker -reproducible -target x86_64-apple-ios11.0-simulator -isysroot /Users/sohrabiranpak/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk -L/Users/sohrabiranpak/Desktop/ppsspp/build-ios/build/EagerLinkingTBDs/Debug-iphonesimulator -L/Users/sohrabiranpak/Desktop/ppsspp/build-ios/Debug-iphonesimulator -F/Users/sohrabiranpak/Desktop/ppsspp/build-ios/build/EagerLinkingTBDs/Debug-iphonesimulator -F/Users/sohrabiranpak/Desktop/ppsspp/build-ios/Debug-iphonesimulator -filelist /Users/sohrabiranpak/Desktop/ppsspp/build-ios/build/PPSSPP.build/Debug-iphonesimulator/Objects-normal/x86_64/PPSSPP.LinkFileList -dead_strip -Xlinker -object_path_lto -Xlinker /Users/sohrabiranpak/Desktop/ppsspp/build-ios/build/PPSSPP.build/Debug-iphonesimulator/Objects-normal/x86_64/PPSSPP_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -stdlib\=libc++ -Wl,-headerpad_max_install_names /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libCore.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libCommon.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libnative.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libCommon.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libsnappy.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libcpu_features.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/liblibzip.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libpng17.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libbasis_universal.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libvma.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libgason.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libudis86.a -framework Foundation -framework MediaPlayer -framework AudioToolbox -framework CoreGraphics -framework QuartzCore -framework UIKit -framework GLKit -framework OpenAL -framework AVFoundation -framework CoreLocation -framework CoreVideo -framework CoreMedia -framework CoreServices -weak_framework GameController -liconv /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libkirk.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libcityhash.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libsfmt19937.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libxbrz.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libxxhash.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/librcheevos.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libglslang.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libSPIRV.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libMachineIndependent.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libOGLCompiler.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libOSDependent.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libGenericCodeGen.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libspirv-cross-glsl.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libspirv-cross-core.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libarmips.a /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libzstd.a -framework OpenGLES /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libnaett.a /Users/sohrabiranpak/Desktop/ppsspp/ffmpeg/ios/universal/lib/libavformat.a /Users/sohrabiranpak/Desktop/ppsspp/ffmpeg/ios/universal/lib/libavcodec.a /Users/sohrabiranpak/Desktop/ppsspp/ffmpeg/ios/universal/lib/libswresample.a /Users/sohrabiranpak/Desktop/ppsspp/ffmpeg/ios/universal/lib/libswscale.a /Users/sohrabiranpak/Desktop/ppsspp/ffmpeg/ios/universal/lib/libavutil.a /Users/sohrabiranpak/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/libz.tbd /Users/sohrabiranpak/Desktop/ppsspp/build-ios/lib/Debug/libminiupnpc.a -Xlinker -sectcreate -Xlinker TEXT -Xlinker entitlements -Xlinker /Users/sohrabiranpak/Desktop/ppsspp/build-ios/build/PPSSPP.build/Debug-iphonesimulator/PPSSPP.app-Simulated.xcent -Xlinker -sectcreate -Xlinker TEXT -Xlinker ents_der -Xlinker /Users/sohrabiranpak/Desktop/ppsspp/build-ios/build/PPSSPP.build/Debug-iphonesimulator/PPSSPP.app-Simulated.xcent.der -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/sohrabiranpak/Desktop/ppsspp/build-ios/build/PPSSPP.build/Debug-iphonesimulator/Objects-normal/x86_64/PPSSPP_dependency_info.dat -o /Users/sohrabiranpak/Desktop/ppsspp/build-ios/Debug-iphonesimulator/PPSSPP.app/PPSSPP
ld: warning: ignoring file /Users/sohrabiranpak/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/libz.tbd, missing required architecture x86_64 in file /Users/sohrabiranpak/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/libz.tbd (4 slices) Undefined symbols for architecture x86_64: "_GetX86Info", referenced from: CPUInfo::Detect() in libCommon.a(CPUDetect.o) "_GetX86Microarchitecture", referenced from: CPUInfo::Detect() in libCommon.a(CPUDetect.o) "_HUF_decompress4X1_usingDTable_internal_fast_asm_loop", referenced from: _HUF_decompress4X1_usingDTable_internal in libzstd.a(huf_decompress.o) "_HUF_decompress4X2_usingDTable_internal_fast_asm_loop", referenced from: _HUF_decompress4X2_usingDTable_internal in libzstd.a(huf_decompress.o) "_adler32", referenced from: _png_compare_ICC_profile_with_sRGB in libpng17.a(png.o) sceAdler32(unsigned int, unsigned int, unsigned int) in libCore.a(sceAdler.o) "_crc32", referenced from: BlockDevice::CalculateCRC(bool volatile) in libCore.a(BlockDevices.o) __KernelLoadELFFromPtr(unsigned char const, unsigned long, unsigned int, bool, std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator >, unsigned int, unsigned int&) in libCore.a(sceKernelModule.o)
_png_reset_crc in libpng17.a(png.o)
_png_calculate_crc in libpng17.a(png.o)
_png_compare_ICC_profile_with_sRGB in libpng17.a(png.o)
zip_string_crc32 in liblibzip.a(zip_string.o)
_zip_source_crc in liblibzip.a(zip_source_crc.o)
...
(maybe you meant: zip_string_crc32)
"_deflate", referenced from:
_png_compress in libpng17.a(pngwutil.o)
_process in liblibzip.a(zip_algorithm_deflate.o)
(maybe you meant: _zip_algorithm_deflate_decompress, _png_deflate_destroy , _zip_algorithm_deflate_compress )
"_deflateEnd", referenced from:
_png_deflateEnd in libpng17.a(pngwutil.o)
_end in liblibzip.a(zip_algorithm_deflate.o)
"deflateInit2", referenced from:
_png_deflate_claim in libpng17.a(pngwutil.o)
_start in liblibzip.a(zip_algorithm_deflate.o)
"_deflateReset", referenced from:
_png_deflate_claim in libpng17.a(pngwutil.o)
"_gzclose", referenced from:
SymbolMap::LoadSymbolMap(Path const&) in libCore.a(SymbolMap.o)
SymbolMap::SaveSymbolMap(Path const&) const in libCore.a(SymbolMap.o)
"_gzeof", referenced from:
SymbolMap::LoadSymbolMap(Path const&) in libCore.a(SymbolMap.o)
"_gzgets", referenced from:
SymbolMap::LoadSymbolMap(Path const&) in libCore.a(SymbolMap.o)
"_gzopen", referenced from:
SymbolMap::LoadSymbolMap(Path const&) in libCore.a(SymbolMap.o)
SymbolMap::SaveSymbolMap(Path const&) const in libCore.a(SymbolMap.o)
"_gzprintf", referenced from:
SymbolMap::SaveSymbolMap(Path const&) const in libCore.a(SymbolMap.o)
"_inflate", referenced from:
CISOFileBlockDevice::ReadBlock(int, unsigned char, bool) in libCore.a(BlockDevices.o)
CISOFileBlockDevice::ReadBlocks(unsigned int, int, unsigned char) in libCore.a(BlockDevices.o)
ezuncompress(unsigned char, long, unsigned char const, long) in libCommon.a(ZIMLoad.o)
gzipDecompress(unsigned char, int, unsigned char) in libCore.a(sceKernelModule.o)
decompress_string(std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator > const&, std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator > ) in libCommon.a(Compression.o)
_png_inflate_read in libpng17.a(pngrutil.o)
_png_zlib_inflate in libpng17.a(pngrutil.o)
...
"_inflateEnd", referenced from:
CISOFileBlockDevice::ReadBlock(int, unsigned char, bool) in libCore.a(BlockDevices.o)
CISOFileBlockDevice::ReadBlocks(unsigned int, int, unsigned char) in libCore.a(BlockDevices.o)
ezuncompress(unsigned char, long, unsigned char const, long) in libCommon.a(ZIMLoad.o)
gzipDecompress(unsigned char, int, unsigned char) in libCore.a(sceKernelModule.o)
decompress_string(std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator > const&, std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator > ) in libCommon.a(Compression.o)
_png_read_destroy in libpng17.a(pngread.o)
CommonDecompress(int, unsigned int, int, unsigned int, unsigned int) in libCore.a(sceDeflt.o)
...
"inflateInit2", referenced from:
CISOFileBlockDevice::ReadBlock(int, unsigned char, bool) in libCore.a(BlockDevices.o)
CISOFileBlockDevice::ReadBlocks(unsigned int, int, unsigned char) in libCore.a(BlockDevices.o)
gzipDecompress(unsigned char, int, unsigned char) in libCore.a(sceKernelModule.o)
decompress_string(std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator > const&, std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator >) in libCommon.a(Compression.o)
_png_inflate_claim in libpng17.a(pngrutil.o)
CommonDecompress(int, unsigned int, int, unsigned int, unsigned int) in libCore.a(sceDeflt.o)
_start in liblibzip.a(zip_algorithm_deflate.o)
...
"inflateInit", referenced from:
ezuncompress(unsigned char, long, unsigned char const, long) in libCommon.a(ZIMLoad.o)
"_inflateReset", referenced from:
CISOFileBlockDevice::ReadBlocks(unsigned int, int, unsigned char*) in libCore.a(BlockDevices.o)
_png_decompress_chunk in libpng17.a(pngrutil.o)
"_inflateReset2", referenced from:
_png_inflate_claim in libpng17.a(pngrutil.o)
"_uncompress", referenced from:
_id3v2_read_internal in libavformat.a(id3v2.o)
(maybe you meant: basist::basis_block_format_is_uncompressed(basist::block_format), basist::basis_get_uncompressed_bytes_per_pixel(basist::transcoder_texture_format) , basist::basis_transcoder_format_is_uncompressed(basist::transcoder_texture_format) , _snappy_uncompress , _snappy_uncompressed_length )
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbol: _GetX86Info
Undefined symbol: _GetX86Microarchitecture
Undefined symbol: _HUF_decompress4X1_usingDTable_internal_fast_asm_loop
Undefined symbol: _HUF_decompress4X2_usingDTable_internal_fast_asm_loop
Undefined symbol: _adler32
Undefined symbol: _crc32
Undefined symbol: _deflate
Undefined symbol: _deflateEnd
Undefined symbol: deflateInit2
Undefined symbol: _deflateReset
Undefined symbol: _gzclose
Undefined symbol: _gzeof
Undefined symbol: _gzgets
Undefined symbol: _gzopen
Undefined symbol: _gzprintf
Undefined symbol: _inflate
Undefined symbol: _inflateEnd
Undefined symbol: inflateInit2
Undefined symbol: inflateInit
Undefined symbol: _inflateReset
Undefined symbol: _inflateReset2
Undefined symbol: _uncompress
Linker command failed with exit code 1 (use -v to see invocation)
Build failed 30/08/2023, 11:04 398.3 seconds
log.zip
PPSSPP version affected
v1.15.4-1245-g25e7c042f
Last working version
No response
Checklist
git submodule update --init --recursive
before building.