Skip to content
This repository has been archived by the owner on Jul 26, 2019. It is now read-only.

Does not compile in xcode 6.4 (6e35b) #2

Closed
SleepyBrett opened this issue Jul 20, 2015 · 3 comments
Closed

Does not compile in xcode 6.4 (6e35b) #2

SleepyBrett opened this issue Jul 20, 2015 · 3 comments

Comments

@SleepyBrett
Copy link

XCode surfaces 20 issues. Many of them are similar to 'AnyObject?' is not convertible to 'SOMETYPE'; did you mean to use 'as!' to force downcast.

@SleepyBrett
Copy link
Author

After making a number of fixes to a language I don't really know, I managed to make it compile. However now I'm having some issues processing a commandline that looks like this.

ipatool xxx.ipa resign xxx.mobileprovision com.blah.foo.xxx

I get 'Need parameters for ipa path and new provisioning profile'.

Which I trace to validateArgs in IPTCommandResign.swift, other digging in that function seems to imply that 'resign' should have been removed from the args array (it tests args members 0 and 1 to make sure they are readable files.. however 1 at this point is 'resign').

This leads me to convertArgsForCompatibility, where .. frankly I don't understand this at all..starting with

    if (args.count >= 2 &&
        (args[1] == "provisioning-profile" || args[1] == "bundle-identifier")) {

Is this some holdover from a previous incarnation?

@svdo
Copy link
Owner

svdo commented Jul 22, 2015

Thanks for reporting this issue. I have fixed it (both the Xcode 6.4 / Swift 1.2 syntax, and the issue that resign gave an error).

@svdo svdo closed this as completed Jul 22, 2015
@SleepyBrett
Copy link
Author

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

2 participants