kokoabim / iOSOpenDev

iOSOpenDev
http://iOSOpenDev.com
Other
902 stars 282 forks source link

Error in Profiling Jailbreak Project in Xcode7.3.1, MacOS X 11 and iOSOpenDev 1.6.2 #139

Closed redbearder closed 4 months ago

redbearder commented 8 years ago

You may face a disgusting issue like below in Env same as Issue Title:

dpkg: error processing /var/root/iOSOpenDevPackages/com.XXX.XXX_0.1_iphoneos-arm.deb (--install):
 unable to create `XXX.app/Base.lproj/Main_iPhone.storyboardc/UINavigationController-rS3-R9-Ivy.nib': No such file or directory
Errors were encountered while processing:
 /var/root/iOSOpenDevPackages/com.XXX.XXX_0.1_iphoneos-arm.deb
Failed.

I spend so long time to try to fix is by: reisntall iOSOpenDev, theos and dpkg clean cache even downgrade dpkg ,because I want to use same version dpkg as iPhone from BigBoss Cydia repo

but also I have this issue in Xcode 7 and Xcode 6 is OK

dpkg in my Mac is 1.18 dpkg in iPhone is 1.14

I can not find too much info about it in Google

But I find I can create and install deb file by manually dpkg-deb command

at last I check iosod bash file and change deb archive command

It works for me finally :D

Below is solution:

Comment line 752-759 like this: `createTarForDebianPackage "$sourceDir/DEBIAN" "$tempDir" "control" "-n"

createTarForDebianPackage "$sourceDir" "$tempDir" "data" "--exclude" "DEBIAN/*" "--exclude" "DEBIAN"

# echo "2.0" > "$tempDir/debian-binary" || \
#   panic $? "Failed to create debian-binary file"

# ar -rc "$packageFile" "$tempDir/debian-binary" "$tempDir/control.tar.gz" "$tempDir/data.tar.gz" || \
#   panic $? "Failed to create Debian archive"`

add new line to archive deb file that I use this method for years: /opt/local/bin/dpkg-deb -b -Zgzip "$sourceDir" "$packageFile"

Then save and build for profiling again with your device

Good luck