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

xib file missing by installing from Alcatraz #196

Closed
onevcat opened this issue Oct 23, 2014 · 7 comments
Closed

xib file missing by installing from Alcatraz #196

onevcat opened this issue Oct 23, 2014 · 7 comments

Comments

@onevcat
Copy link

onevcat commented Oct 23, 2014

Hi,

Some users told me that the setting panel of my plugin VVDocumenter can not be opened on Xcode 6.0.1 and Xcode 6.1, if they install it by Alcatraz.

I just did a simple research on it and found the xib file is not correctly copied into the Resources folder of the xcplugin package, which caused the problem.

But everything works well if I build the plugin from Xcode myself. Do you have any clue about what happened? (Just test it on Xcode 5 again and the same situation now. I believe it works perfectly before.)

@johnno1962
Copy link
Contributor

Hi,

I have the same issue when people try to install using Alcatraz from GitDiff . I’ve tried moving the nib around, localising it etc but when it builds from alcatraz the nib is never compiled according to the logs. If I do the same xcodebuild on the command line in the ~/Library/Application\ Support/Alcatraz/Plug-ins/GitDiff directory it builds correctly. This is probably an xcodebuild problem but how to work around it??

@johnno1962
Copy link
Contributor

Actually it’s the same for XprobePlugin which definitely used to work (before Xcode 6.x?) No recent updates, the nib file is now just skipped for Alcatraz installs... Help!

@jurre
Copy link
Collaborator

jurre commented Oct 23, 2014

Hey, thanks for reporting this! I'm not sure what could be causing this so I'll have to investigate... @kattrali @supermarin do you have any idea?

@johnno1962
Copy link
Contributor

Not sure why but if I make the following change to completely clear out the git clone in ATZGit.m it seems to resolve the problem in the github version of Alcatraz:

+ (void)fetch:(NSString *)localPath completion:(void (^)(NSString *, NSError *))completion {
++++    [[NSFileManager sharedManager] removeItemAtPath:localPath error:NULL]; ++++

    ATZShell *shell = [ATZShell new];
    [shell executeCommand:GIT withArguments:@[FETCH, ORIGIN] inWorkingDirectory:localPath
               completion:^(NSString *output, NSError *error) {

        NSLog(@"Git fetch output: %@", output);
        completion(output, error);
    }];
}

@johnno1962
Copy link
Contributor

Hi Jurre,

I’ve spent a bit of quality time with Alcatraz today and filed a couple of pull requests. The first for alcatraz-packages populates the number of stars from github in packages.json ready to display them along with a script to update these counts periodically (yes it’s Perl but it was a better fit than python.)

alcatraz/alcatraz-packages#221

#197

The second, to Alcatraz itself, fixes the missing nib file problem by clearing out the repo area completely before the clone and also contains code to display the number of stars and a more speculative change to run Alcatraz on the menu bar to avoid the UUID version problem each Xcode release.

Alcatraz Stars

Hope this helps things along!

John

@orta
Copy link
Contributor

orta commented Mar 29, 2015

fixed in #237

@jurre jurre closed this as completed Mar 29, 2015
@jurre
Copy link
Collaborator

jurre commented Mar 29, 2015

Thanks ^^

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

No branches or pull requests

4 participants