Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem building dependencies of the example app. #43

Open
kzaher opened this issue Jan 25, 2019 · 6 comments
Open

Problem building dependencies of the example app. #43

kzaher opened this issue Jan 25, 2019 · 6 comments

Comments

@kzaher
Copy link
Member

kzaher commented Jan 25, 2019

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.

@freak4pc
Copy link
Collaborator

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

@kzaher
Copy link
Member Author

kzaher commented Jan 25, 2019

@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.

@freak4pc
Copy link
Collaborator

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

@kzaher
Copy link
Member Author

kzaher commented Jan 25, 2019

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.

@marioradonic
Copy link

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*

@kzaher
Copy link
Member Author

kzaher commented Jan 31, 2019

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants