RxFeedback.swift icon indicating copy to clipboard operation
RxFeedback.swift copied to clipboard

Problem building dependencies of the example app.

Open kzaher opened this issue 5 years ago • 6 comments

For some reason running Examples/dependencies.sh or git submodule update --init --recursive --force before building the Example target inside of theExamples/Examples.xcodeproj in a fresh cloned repo succeeds

... but trying to build Example target before running the Examples/dependencies.sh or git submodule update --init --recursive --force causes build failure.

I have no idea what's happening here.

kzaher avatar Jan 25 '19 14:01 kzaher

It actually works fine for me. I just cloned a fresh one, built the project, get the osascript alert and the project worked.

freak4pc avatar Jan 25 '19 17:01 freak4pc

@freak4pc Did you clone it under the same name under which it was cloned before? If so, try cloning it to a new unique path.

kzaher avatar Jan 25 '19 19:01 kzaher

It was unique, I didn’t have it cloned.

freak4pc avatar Jan 25 '19 19:01 freak4pc

I can repro it pretty consistently on my computer.

Xcode Version 10.1 (10B61)

  • clone the repo under new path.
  • Select Example target
  • Build > Warning appears > Xcode closes
  • Build again > Can't find Rx*

It happens to me on both of my computers, like 90% of times.

kzaher avatar Jan 25 '19 19:01 kzaher

Hi @kzaher I stumbled upon same problem. If you delete derived data you can repro this always without having to change the name. Likewise, if you delete derived data after the dependencies script closes the Xcode it fixes the problem. Using the legacy build system also fixes the problem, so I guess it's a bug in a new build system probably caused by abruptly killing Xcode.

If you want I can help by deleting derived data in the script, but I think ultimately better solution would be to use another way to link Rx*

marioradonic avatar Jan 30 '19 21:01 marioradonic

@marioradonic I'm not sure is killing Xcode the real culprit here. I've tried removing the kill from ./dependencies but as far as I can tell it still failed on me.

On high level I think it would be nice to just be able to hit run in Xcode and for everything to magically work without any additional dependencies. Maintaining example apps for 3 package managers is too much for me.

kzaher avatar Jan 31 '19 14:01 kzaher