facebook / buck

A fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.
https://buck.build
Apache License 2.0
8.56k stars 1.16k forks source link

Simulator killed on every install #1995

Open joprice opened 6 years ago

joprice commented 6 years ago

Every time buck install is run on an ios project, the simulator is restarted. Running the command with --verbose 8 shows the following log:

 Optional[/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A     /XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc] does not match developer directory /Applications/Xcode.app/Contents/Developer, killing all simulators

The developer directory ultimately comes from getAppleDeveloperDirectorySupplier in src/com/facebook/buck/apple/AppleConfig.java, which allows you to override it with xcode_developer_dir, but doing this will result in other tools not being found.

andriantosg commented 5 years ago

Do you have any solution for the issue?

rockbruno commented 5 years ago

I'm necroing this thread because I have some info. The warning comes from here: https://github.com/facebook/buck/blob/34b9d682b950e73df49d6a1d81b53c921bd062f2/src/com/facebook/buck/cli/InstallCommand.java#L686

I'm still not sure if removing it brings other issues, but I removed this logic in a fork and the problem went away, with apparently nothing else stopping working.