RxBluetoothKit icon indicating copy to clipboard operation
RxBluetoothKit copied to clipboard

Autogenerated file gets regenerated at every build causing submodule to become dirty

Open c0diq opened this issue 6 years ago • 2 comments

Describe the bug Everytime RxBluetoothKit is built from scratch, the file Tests/Autogenerated/_Peripheral.generated.swift seems to be regenerated and looks different causing the git submodule to become dirty.

To Reproduce Steps to reproduce the behavior:

  1. Add RxBluetoothKit as submodule
  2. Build RxBluetoothKit
  3. Notice Tests/Autogenerated/_Peripheral.generated.swift changes

Expected behavior Tests/Autogenerated/_Peripheral.generated.swift shouldn't change or be git ignored.

Environment:

  • Library version [5.1.3]
  • Swift version [4.1]

c0diq avatar Feb 14 '19 22:02 c0diq

A fix is to remove gsed from environment but is not very nice.

c0diq avatar Feb 15 '19 00:02 c0diq

Can we use an environment variable and execute code generation using a script instead of a build phase?

c0diq avatar May 28 '19 18:05 c0diq