Jump to content

niro

Senior Member
  • Posts

    372
  • Joined

  • Last visited

Posts posted by niro

  1. Not sure why this happens but it's every time. What I did was copied and extracted my theos that did work from iOS 8 and now I'm trying to use it on iOS 9, I just updated perl and now I get a bad interpreter error! And on top of that I get a no target found etc, I am using both iOS 7.1 and 8.1 SDKs (I have both in my folder) I have done the Darwin64 thing etc etc, could someone that has a working theos upload it to Dropbox :D

     

    Errors:

    http://imgur.com/06O1Dzt

  2. hey ive downloaded cygwin since PAM hasnt been updates. Just a moment ago I compiled fine (but i forgot to add ARCHS at the top of my makefile) now that I have fixed the error I go and try to compile again and now this is the output.

    /home/niro/FolderColors/theos/makefiles/targets/Cygwin/iphone.mk:38: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
    /home/niro/FolderColors/theos/makefiles/master/tweak.mk:20: warning: overriding recipe for target 'FolderColors'
    /home/niro/FolderColors/theos/makefiles/master/bundle.mk:17: warning: ignoring old recipe for target 'FolderColors'
    Making all for bundle FolderColors...
     Copying resource directories into the bundle wrapper...
     Compiling FolderColors.mm...
     Linking bundle FolderColors...
    ld: can't open output file for writing: /tmp/-e6dd15.out, errno=2 for architecture armv7
    armv7-apple-darwin11-clang: error: linker command failed with exit code 1 (use -v to see invocation)
    /home/niro/FolderColors/theos/makefiles/instance/bundle.mk:34: recipe for target 'obj/FolderColors.bundle/FolderColors.1b5b9d6a.unsigned' failed
    make[2]: *** [obj/FolderColors.bundle/FolderColors.1b5b9d6a.unsigned] Error 1
    /home/niro/FolderColors/theos/makefiles/instance/bundle.mk:24: recipe for target 'internal-bundle-all_' failed
    make[1]: *** [internal-bundle-all_] Error 2
    /home/niro/FolderColors/theos/makefiles/master/rules.mk:54: recipe for target 'FolderColors.all.bundle.variables' failed
    make: *** [FolderColors.all.bundle.variables] Error 2
    
    

    everything is perfect up until this 

    ld: can't open output file for writing: /tmp/-e6dd15.out, errno=2 for architecture armv7
    armv7-apple-darwin11-clang: error: linker command failed with exit code 1 (use -v to see invocation)
    /home/niro/FolderColors/theos/makefiles/instance/bundle.mk:34: recipe for target 'obj/FolderColors.bundle/FolderColors.1b5b9d6a.unsigned' failed
    make[2]: *** [obj/FolderColors.bundle/FolderColors.1b5b9d6a.unsigned] Error 1
    /home/niro/FolderColors/theos/makefiles/instance/bundle.mk:24: recipe for target 'internal-bundle-all_' failed
    make[1]: *** [internal-bundle-all_] Error 2
    /home/niro/FolderColors/theos/makefiles/master/rules.mk:54: recipe for target 'FolderColors.all.bundle.variables' failed
    make: *** [FolderColors.all.bundle.variables] Error 2
    
    

    So what I thought was I had to add the Darwin64 thing. What I did was wget theos from putty and used WinSCP to move those files over to my theos on my PC, and I am still getting the same error, At this point ive searched google but i cant seem to find anything.

     

    Anyone know what the problem is?

  3. okay, I've posted something similar to this before and I need a descriptive answer that I would understand, things like [DoSomething SomethineElse] etc confuse me, so what I'm trying to do is call methods/functions from other classes, so let's say I send a message with the string "!info" that info would call a method from a different class and display the data into the message kind of like a command, so I have an example

     

    @interface KikUser : NSObject
    - (NSString *)groupMembersString;
    @end
    
    
    %hook CoreDataConversationManager
    
    - (void) sendTextMessage:(id)command withRenderInstructionSet:(id)arg2 toConversation:(id)arg2 isSuggestedResponse:(BOOL)arg3
    
    {
    if [(command isEqualToString:@"!type")] command = groupMembersString;
    return %orig;
    }
    
    %end
    As you can see I'm trying to call the string from the header KikUser, and the method to send a message within Kik is on a DIFFERENT Header, and I'm trying to return the data from the groupMembersString upon typing and clicking enter with !info typed, now I have a lot more questions that I can't really phrase and it would be better to show you "live" (me screen recording) so if anyone could help me out that would be fantastic, my Kik is @a3t and my Skype is @notniro someone please help! :D
  4.  

    Nope. You could ignore it (if it's not fatal) or you could do this:

     

    %hook KikStanzaChangeGroupName
    
    - (id) initWithGroup:(id)group andNewName:(id)name
    {
    NSArray *jid = @[@"[email protected]", @"[email protected]"];
    
    for (int i = 0; i < jid.count; i++)
    {
      NSString *jidd = [jid objectAtIndex:(NSUInteger)[NSNumber numberWithInt:i]];
          group = @"%@", jidd;
      }
    %orig;
    }
    
    
    %end

     

    Hey, so I made this, now it only does the first one in the array, how would I make it loop so it is equal to the first one and then the second??

     

    %hook KikStanzaChangeGroupName
    
    -(id) initWithGroup:(id)group andNewName:(id)name
    {
        NSArray *verified_users = @[@"[email protected]", @"[email protected]"];
    
        for (int i = 0; i < verified_users.count; i++) {
    group = [verified_users objectAtIndex:i];
    }
    return %orig;
    }
    %end
  5.  

    The errors are related to type casting and stuff :3

     

    Do this:

    %hook KikStanzaChangeGroupName
    
    - (id) initWithGroup:(id)group andNewName:(id)name
    {
    NSArray *jid = @[@"[email protected]", @"[email protected]"];
    
    for (int i = 0; i < jid.count; i++)
    {
      NSString *jidd = [jid objectAtIndex:(NSUInteger)[NSNumber numberWithInt:i]];
          group = @"%@", jidd;
      }
    %orig;
    }
    
    
    %end
    
    

    that seemed to fix one, it still says the group = jidd is an unused expression... so would I do this?:  [NSString stringWithFormat:@"%@", jidd]

  6.  

    It's quite simple, you used the wrong accessor method.

    To get the index of an item in an array, it makes more sense to use the "objectAtIndex:" method :)

    %hook KikStanzaChangeGroupName
    
    - (id) initWithGroup:(id)group andNewName:(id)name
    {
    NSArray *jid = @[@"[email protected]", @"[email protected]"];
    
    for (int i = 0; i < jid.count; i++)
    {
      NSString *jidd = [jid objectAtIndex:[NSNumber numberWithInt:i]];
          group = @"%@", jidd;
      }
    %orig;
    }
    
    
    %end
    

    https://gyazo.com/cf12bca73e6dbab40042f119db4c9746 

     

    I copied and pasted what you did and I got this :S?

  7. Hey So im trying to Loop through an NSArray I created and i keep coming back with 

     

    error: unused variable 'jidd' 

     

    here is my code.

     

     

    %hook KikStanzaChangeGroupName
    
    
    - (id) initWithGroup:(id)group andNewName:(id)name
    {
    NSArray *jid = @[@"[email protected]", @"[email protected]"];
    
    
    for (int i = 0; i < jid.count; i++)
    {
      NSString *jidd = jid[i];
          group = @"%@", jidd;
      }
     return %orig;
    }
    
    
    %end

    could someone tell me what I am doing wrong/fix it?

     

    I was thinking that i needed a .m or .h files but im not 100% positive.

     

     

    Okay so the second question I have is, how would I call another header within a header? what i mean is this. If I for example, did

     

    %hook CoreDataConversationManager
    
    
    - (void) sendTextMessage:(id)command withRenderInstructionSet:(id)arg1 toConversation:(id)arg2 isSuggestedResponse:(BOOL)arg3
    {
    
      if ([command isEqualToString:@"$ChangeName"]) command = @"new name";
    return %orig;
    }
    
    
    %end

    okay so if I typed out $ChangeName and clicked enter, it would do the same action as above (KikStanzaChangeGroupName) and change the name without actually having to go to that ChangeGroup Name ViewController and clicking save.

     

  8. Hey, so im trying to make commands for my tweak! so I would be using cURL (i think) and it would be a HTTP GET, 

     

    so for example if i wrote $ud niro in the text box and hit enter it would return https://K8.reko.io/v1/api?ud=niro, how would i make it so that it carries over the "niro" and puts it into the url?

     

    Even better how could i make it return all the data from the GET?

     

    if ([command hasPrefix:@"$ud"]) command =@"https://K8.reko.io/v1/api?ud=";

     

     

    here is what i have, so if i wrote $ud it returns the URL, im trying to get it to be if i typed $ud niro it returns the url and =niro at the end? and if possible how could i make it return the get response so if i typed $ud niro it returns in the command=@"GET DATA HERE"

     

     

    sorry for being confusing :S

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines