tomkidd / RTCW-iOS

Return to Castle Wolfenstein for iOS and tvOS for Apple TV
50 stars 4 forks source link

Xcode 12.5 - build issue #18

Open ds8k opened 3 years ago

ds8k commented 3 years ago

Trying to build for my new 2nd gen Apple TV and getting this error

ld: bitcode bundle could not be generated because '.../libSDL2_0_14_tvos.a(SDL_uikitappdelegate.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ds8k commented 3 years ago

Managed to fix it by stealing the SDL dependency from Doom 3, but it crashes on trying to start a new game.

tomkidd commented 3 years ago

What error is it giving you when launched from Xcode in the console?

ds8k commented 3 years ago
Screen Shot 2021-06-15 at 1 12 54 AM

This is what I get when I select a difficulty. Curiously Q3A works totally fine using the same SDL swap trick

tomkidd commented 3 years ago

ok so I'm not sure why I'm not getting the error when I debug (only when I try and launch outside of the debugger) but I did remove an unnecessary hookup to the delegate in the Storyboard so maybe it'll work now. Also I'm trying this on tvOS 14.4 and not 14.6 so I should probably update and see if that encounters the bitcode thing.

42816750b6d690ff8bb1258b457f570d39fd8990

However there's another issue - the game does that thing where it loads and then at the loading screen it has an arrow at the bottom right you have to click to move on to the game. In the iPhone version you can just tap the screen but you can't move the mouse pointer as easily in the tvOS version - the Siri remote doesn't move it enough and the controller does nothing. I can't remember how I got past this to make the video so it might have changed. I have some ideas on how to get around it but I will need to look at it later. If you have any epiphanies on this let me know.

As much as I like having these games on Apple TV, the tvOS versions definitely get less love.

ds8k commented 3 years ago

@tomkidd I don't blame you, especially if you don't have easy access to the newer gen.

In Doom 3 I was able to get the cursor to move with the new remotes touch dial, but couldn't get that to work in Quake 3. I'll try out the new code and report back.

Would you have any interest in me putting a PR to update the Quake 3 repo? The only issue I could really find was the PS5 controller would constantly spin, but an Xbox controller worked fine.

dnicolson commented 3 years ago

However there's another issue - the game does that thing where it loads and then at the loading screen it has an arrow at the bottom right you have to click to move on to the game. In the iPhone version you can just tap the screen but you can't move the mouse pointer as easily in the tvOS version - the Siri remote doesn't move it enough and the controller does nothing. I can't remember how I got past this to make the video so it might have changed. I have some ideas on how to get around it but I will need to look at it later. If you have any epiphanies on this let me know.

@tomkidd I think it's the same issue as https://github.com/tomkidd/RTCW-iOS/issues/7.