linux-app icon indicating copy to clipboard operation
linux-app copied to clipboard

Cannot Build Using iOS 17.4

Open GenghisKhanDrip opened this issue 1 year ago • 0 comments

Firstly I want to say this is a really cool repository and I appreciate this being out there as a Linux User! I was trying to build using iOS 17.4 (Xcode 15.3 ubuntu22.04 amd64), however I have been running into some issues relating to compilation. Seeing how the fork of swift-package-manager only supports Swift 5.9 and iOS 17.4 has apparently shifted to Swift 5.10, I attempted to use the default version of Swift 5.10 and got the following error: (Additionally, I attempted to use my fork of the package manager with fixes merged from Swift 5.10 and got another stack trace that can be viewed in edit history) It would be very appreciated if this issue could be solved seeing how Swift 5.10 has released!

Stack Trace
Error: Swift SDK with ID `darwin`, host triple x86_64-unknown-linux-gnu, and target triple ios17 is not currently installed.
swift build -c debug --experimental-swift-sdk ios17 --product MyApp
Building for debugging...
error: compile command failed due to signal 11 (use -v to see invocation)
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /usr/share/swift/usr/bin/swift-frontend -frontend -c -primary-file /home/administrator/linux-app/Sources/MyApp.swift -emit-dependencies-path /home/administrator/linux-app/.build/arm64-apple-darwin/debug/MyApp.build/MyApp.d -emit-reference-dependencies-path /home/administrator/linux-app/.build/arm64-apple-darwin/debug/MyApp.build/MyApp.swiftdeps -target arm64-apple-ios17 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /home/administrator/.swiftpm/swift-sdks/darwin.artifactbundle/sdks/iPhoneOS.sdk -I /home/administrator/linux-app/.build/arm64-apple-darwin/debug -color-diagnostics -enable-testing -g -module-cache-path /home/administrator/linux-app/.build/arm64-apple-darwin/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /usr/share/swift/usr/bin/swift-driver -entry-point-function-name MyApp_main -empty-abi-descriptor -resource-dir /home/administrator/.swiftpm/swift-sdks/darwin.artifactbundle/res/swift -enable-anonymous-context-mangled-names -Xcc -isysroot -Xcc /home/administrator/.swiftpm/swift-sdks/darwin.artifactbundle/sdks/iPhoneOS.sdk -Xcc -target -Xcc arm64-apple-ios17 -Xcc -g -module-name MyApp -target-sdk-version 17.4 -target-sdk-name iphoneos17.4 -external-plugin-path /home/administrator/.swiftpm/swift-sdks/darwin.artifactbundle/sdks/iPhoneOS.sdk/usr/lib/swift/host/plugins#/home/administrator/.swiftpm/swift-sdks/darwin.artifactbundle/sdks/iPhoneOS.sdk/usr/bin/swift-plugin-server -external-plugin-path /home/administrator/.swiftpm/swift-sdks/darwin.artifactbundle/sdks/iPhoneOS.sdk/usr/local/lib/swift/host/plugins#/home/administrator/.swiftpm/swift-sdks/darwin.artifactbundle/sdks/iPhoneOS.sdk/usr/bin/swift-plugin-server -external-plugin-path /home/administrator/.swiftpm/swift-sdks/Developer/usr/lib/swift/host/plugins#/home/administrator/.swiftpm/swift-sdks/Developer/usr/bin/swift-plugin-server -external-plugin-path /home/administrator/.swiftpm/swift-sdks/Developer/usr/local/lib/swift/host/plugins#/home/administrator/.swiftpm/swift-sdks/Developer/usr/bin/swift-plugin-server -plugin-path /usr/share/swift/usr/lib/swift/host/plugins -plugin-path /usr/share/swift/usr/local/lib/swift/host/plugins -parse-as-library -o /home/administrator/linux-app/.build/arm64-apple-darwin/debug/MyApp.build/MyApp.swift.o -index-store-path /home/administrator/linux-app/.build/arm64-apple-darwin/debug/index/store -index-system-modules
1.	Swift version 5.10 (swift-5.10-RELEASE)
2.	Compiling with the current language version
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/usr/share/swift/usr/bin/swift-frontend(+0x61b7623)[0x5aeff89ff623]
/usr/share/swift/usr/bin/swift-frontend(+0x61b55de)[0x5aeff89fd5de]
/usr/share/swift/usr/bin/swift-frontend(+0x61b799a)[0x5aeff89ff99a]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x719612a42520]
/usr/share/swift/usr/bin/swift-frontend(+0x787e884)[0x5aeffa0c6884]

*** Signal 11: Backtracing from 0x5aeffa0c6884... done ***

*** Program crashed: Bad pointer dereference at 0x00005aeffa0c6884 ***

Thread 0 "swift-frontend" crashed:

0  0x00005aeffa0c6884


Registers:

rax 0x00005aeffa0c6884  d9 8e b5 fa e0 8e b5 fa e7 8e b5 fa ee 8e b5 fa  Ù·µúà·µúç·µúî·µú
rdx 0x0000000000000000  0
rcx 0x00005aeffa0c6884  d9 8e b5 fa e0 8e b5 fa e7 8e b5 fa ee 8e b5 fa  Ù·µúà·µúç·µúî·µú
rbx 0x0000000000000011  17
rsi 0x00005aeffdcfa500  61 72 6d 36 34 2d 61 70 70 6c 65 2d 69 6f 73 31  arm64-apple-ios1
rdi 0x00005aeffb786540  61 72 6d 36 34 2d 61 70 70 6c 65 2d 69 6f 73 31  arm64-apple-ios1
rbp 0x0000000000000011  17
rsp 0x00007ffddef1c940  a0 c9 f1 de fd 7f 00 00 11 00 00 00 00 00 00 00   ÉñÞý···········
 r8 0x0000000000000000  0
 r9 0x0000000000000001  1
r10 0xfffffffffffff000  18446744073709547520
r11 0x00005aeffec06720  00 f0 ff ff ff ff ff ff 00 00 00 00 00 00 00 00  ·ðÿÿÿÿÿÿ········
r12 0x000000000000000c  12
r13 0x00007ffddef1c960  11 00 00 00 00 00 00 00 a6 a6 51 f4 ef 5a 00 00  ········¦¦QôïZ··
r14 0x0000000000000000  0
r15 0x00005aeffb786540  61 72 6d 36 34 2d 61 70 70 6c 65 2d 69 6f 73 31  arm64-apple-ios1
rip 0x00005aeffa0c6884  d9 8e b5 fa e0 8e b5 fa e7 8e b5 fa ee 8e b5 fa  Ù·µúà·µúç·µúî·µú

rflags 0x0000000000010206  PF

cs 0x0033  fs 0x0000  gs 0x0000


Images (24 omitted):



Backtrace took 0.02s


make: *** [Makefile:16: build] Error 1


GenghisKhanDrip avatar Mar 31 '24 22:03 GenghisKhanDrip