Post

Replies

Boosts

Views

Activity

Xcode 12 "Build input file cannot be found" $DERIVED_FILES_DIR
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
3
0
8.8k
Sep ’20