Results 1 to 2 of 2
Discuss XCode 3.1.4+debug iphone 2.2.1 = iphone reboot :( at the iPhone Developer Exchange - Hackint0sh.org; Hi, i have a jailbroken ipod touch 2g running 2.2.1 firm. I am writing a ...
  1. #1
    Newbie Array

    Join Date
    Jan 2010
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default XCode 3.1.4+debug iphone 2.2.1 = iphone reboot :(

    Hi, i have a jailbroken ipod touch 2g running 2.2.1 firm.
    I am writing a simple app in Xcode 3.1.4 and when i hit build and go to put it in the device, right when it installs it and runs it, my ipod reboots and goes to safe mode and i get the broken pipe error in xcode.
    If i ssh into the ipod and ldid the app then it works fine.

    Anyone knows why it does that ? or even better how to fix it ?

    Some info about my xcode details:
    - I have added the singeridentity....in my project's info.plst
    - I have made an iPhone Developer certificate, self-signed..
    - I have added the _ALLOWED, _REQUIRED entries in the iphoneOS.platform .... info file.

    Thanks.



  2. #2
    Newbie Array

    Join Date
    Jan 2010
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Fixed it by doing this :

    - Download gen_entitlements.py
    - Place it somewhere in your mac ex. /Users/youruser/gen_entitlements.py
    - Open a console, go there and type chmod 777 gen_entitlements.py
    - Open Xcode and go to Projects->New Build Phase->New Run script Build phase and paste this:
    PHP Code:
    export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
    if [ "${PLATFORM_NAME}== "iphoneos" ]; then
        
    /Users/youruser/bin/gen_entitlements.py "my.company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent";
        
    codesign --"iPhone developer" --resource-rules "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/ResourceRules.plist" \
             --
    entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent"  "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/"
    fi 
    Dont forget to edit this and add the proper path where your .py is.

    - Build a go and you are ready to go

 

 

Similar Threads

  1. Replies: 3
    Last Post: 02-02-2013, 06:19 PM
  2. Replies: 10
    Last Post: 06-01-2010, 06:45 PM
  3. Replies: 0
    Last Post: 01-11-2010, 03:35 PM
  4. Replies: 1
    Last Post: 06-15-2009, 10:43 AM
  5. Replies: 4
    Last Post: 04-20-2009, 09:28 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 08:16 AM.
twitter, follow us!