Skip to content
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.

Make -findXcodeprojPathForPlugin: a bit more flexible #461

Conversation

guillaumealgis
Copy link
Member

  • Rename -findXcodeprojPathForPlugin: to -findXcodeprojPathForPackage:
  • Remove usage of @throw, use NSError instead
  • Make the algorithm finding the plugin's xcodeproj a bit more flexible. Instead of expecting PluginName.xcodeproj, it will:
    • Search the plugin repo for .xcodeproj files
    • If only one xcodeproj is found, build that and be happy
    • If multiple xcodeproj are found, try to find one matching the plugin name (old behavior)
    • In all other cases, return nil

This will simplify the process of making a plugin work with Alcatraz, as the authors will no longer need to have the name displayed in the plugins list match the xcodeproj filename.

Fixes #452.

Instead of searching only for a file named "PluginName.xcodeproj", take any xcodeproj if there is only one in the searched directory. If multiple xcodeprojs are found, try to find one named like the plugin, return nil for all other cases.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant