Posts

Post not yet marked as solved
3 Replies
8.4k Views
I've got several Xcode projects that build command line tools, that have a "Run Script" build phase which generates a modified Info.plist file into the $DERIVEDFILESDIR based on the build target's assigned Info.plist. This derived Info.plist file is then referenced in the build target's "Other linker flags" as an input to "-sectcreate TEXT info_plist". With Xcode 12, if I do a "Clean" then "Build" the build will fail the first time every time with a Link error error: Build input file cannot be found: '[snip]-apyyjhtaurzdhaaqytutfobpvoth/Build/Intermediates.noindex/ProductName.build/Debug/ProductName.build/DerivedSources/Info.plist' Building a second time (without cleaning) seems to work fine, because a version of the "DerivedSources/Info.plist" file already exists. But Cleaning again and then building results in the same error again. The "Run Script" phase that generates the file is before "Compile Sources" and "Link Binary with Libraries". I have tried unchecking the new "Based on dependency analysis" checkbox in the Run Script phase, but the problem still happens. This is annoying for me as a developer, but livable for the short term. However, it's almost impossible for my automated build system to deal with. Is there another way I should be generating the Info.plist file prior to linking? Thanks, John
Posted
by NanoJohn.
Last updated
.
Post not yet marked as solved
0 Replies
427 Views
I have a tvOS app that uses AVQueuePlayer and an AVPlayerLayer to display among other things, videos that contain audio tracks. The audio plays fine through the TV the Apple TV device is connected to. However, if you use the Apple TV Settings app to specify an AirPlay 2 speaker (or another Apple TV) as an audio output device, no audio from my application can be heard on the targeted AirPlay device. If you play a video from another app, like the WWDC app, the audio CAN be heard from the AirPlay device.To be clear, I'm not necessarily trying to add the ability for a user to choose to Airplay to another device from within my app. At this point, I just want to be able to honor the configuration they may have already made in the devices settings.Either I haven't found the right keywords to search for, or this is not a common problem.
Posted
by NanoJohn.
Last updated
.