objectbox-swift icon indicating copy to clipboard operation
objectbox-swift copied to clipboard

Xcode 14 beta 4 build phase script warning

Open funcJeff opened this issue 3 years ago • 1 comments

In Xcode 14 beta 4 (14A5284g), building a toy example project will output this warning:

warning: Run script build phase '[OBX] Update Sourcery Generated Files' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'MyApp' from project 'MyApp')

I followed second instruction, and went to Target > Build Phases > [OBX] Update Sourcery Generated Files and unchecked "Based on dependency analysis". That made the warning go away on next build.

I surmise that is the correct fix, yes?

funcJeff avatar Aug 07 '22 20:08 funcJeff

Sorry, we haven't tested with this (pre-release) version of XCode, yet. I guess following the instructions as written to run every build does no harm at this point.

greenrobot-team avatar Aug 29 '22 08:08 greenrobot-team

Changed the setup.rb script to uncheck the "Based on dependency analysis" which downgrades this from a warning to a note.

Will probably ship with release 1.9.1.

greenrobot-team avatar Nov 20 '23 13:11 greenrobot-team