RTCW-iOS icon indicating copy to clipboard operation
RTCW-iOS copied to clipboard

Xcode 12.5 - build issue

Open ds8k opened this issue 4 years ago • 6 comments

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 avatar Jun 15 '21 01:06 ds8k

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

ds8k avatar Jun 15 '21 03:06 ds8k

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

tomkidd avatar Jun 15 '21 03:06 tomkidd

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

ds8k avatar Jun 15 '21 05:06 ds8k

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.

tomkidd avatar Jun 15 '21 14:06 tomkidd

@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.

ds8k avatar Jun 15 '21 19:06 ds8k

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.

dnicolson avatar Jun 18 '21 16:06 dnicolson