Posts: 16,946
Joined: Feb 2011
Reputation:
256
Running it in the debugger via xcode also increases the cpu usage on the device...!
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)
Posts: 265
Joined: Dec 2010
Reputation:
1
I got this from the debug log.
17:05:01 T:1074409472 DEBUG: FactoryCodec - Video: vtb - Opening
17:05:01 T:1074409472 DEBUG: SECTION:LoadDLL(/System/Library/Frameworks/VideoToolbox.framework/VideoToolbox)
17:05:01 T:1074409472 DEBUG: Loading: /System/Library/Frameworks/VideoToolbox.framework/VideoToolbox
17:05:01 T:1074409472 DEBUG: CreateFormatDescriptionFromCodecData - GetIOSVersion says >= 4.3
17:05:01 T:1074409472 NOTICE: Open - created avcC atom of size(40)
17:05:01 T:1074409472 DEBUG: FactoryCodec - Video: vtb-h264 - Opened
17:05:01 T:1074409472 NOTICE: Creating video thread
Posts: 178
Joined: Feb 2011
Reputation:
2
Here's the relevant snippet of the Xcode crash log.
Dyld Message: Library not loaded: @executable_path/Frameworks/libsmbclient.dylib
In searching around, I found an old message from Memphiz that "the normal xcode signing is not enough for xbmc", so perhaps it's just not possible unless I make the entire build myself and allow Xcode to automagically sign everything. Anyone know for sure?
Posts: 758
Joined: Jun 2014
Reputation:
31
MrMC
Posting Freak
Posts: 758
did you sign what is in Frameworks ?
Posts: 178
Joined: Feb 2011
Reputation:
2
No, I just resigned the ipa. I'm trying to figure out how to sign the dylibs individually, but so far haven't discovered how. If you (or anyone else) have any tips, they'd be much appreciated. In any case, thanks for your responses.
Posts: 758
Joined: Jun 2014
Reputation:
31
MrMC
Posting Freak
Posts: 758
rename xxx.ipa to xxx.zip, unzip, sign, rezip.
Posts: 178
Joined: Feb 2011
Reputation:
2
2015-10-30, 03:54
(This post was last modified: 2015-10-30, 03:57 by ChipsAhoy.)
That's exactly what I did. That signs the app, but not the Frameworks. I believe you're correct that the problem is that the dylibs in the Frameworks aren't signed, but I don't know how to sign them. You can tell Xcode to do that if you're compiling the app from source, but since I didn't create the build myself, I'm not sure how to go about it.
Posts: 758
Joined: Jun 2014
Reputation:
31
MrMC
Posting Freak
Posts: 758
readme says how to build.
Posts: 178
Joined: Feb 2011
Reputation:
2
Yes, I've spent quite a bit of time trying it build it myself, but despite following the instructions carefully more than once, I've run into issues long before I even get to a point where I can build it. Unfortunately, it's starting to look like my only option.
Thanks for your efforts, I appreciate it.
Posts: 758
Joined: Jun 2014
Reputation:
31
MrMC
Posting Freak
Posts: 758
in the Codesign.command script that Xcode runs
#this is the list of binaries we have to sign for being able to run un-jailbroken
LIST_BINARY_EXTENSIONS="dylib so 0 vis pvr"
...
echo Doing a full bundle sign using genuine identity "${CODE_SIGN_IDENTITY}"
for binext in $LIST_BINARY_EXTENSIONS
do
codesign -fvvv -s "${CODE_SIGN_IDENTITY}" -i org.xbmc.kodi-ios `find ${CODESIGNING_FOLDER_PATH} -name "*.$binext" -type f` ${CODESIGNING_FOLDER_PATH}
done
echo In case your app crashes with SIG_SIGN check the variable LIST_BINARY_EXTENSIONS in tools/darwin/Support/Codesign.command
this is just a standard bash script. you can extract out the bits and make your own bash script that does a full sign of the main app and all the related binaries.
Posts: 178
Joined: Feb 2011
Reputation:
2
That sounds very promising! I'll pursue that avenue and see how it goes.
Thanks much!
Posts: 178
Joined: Feb 2011
Reputation:
2
Yahoo! Yippee! and Thanks MrMC! That last bit of advice did the trick.
For anyone else trying to do this, I had to first sign the entire Kodi.app using the bash script , rezip it into a Payload folder, rename as .ipa, and then use iResign. After that, it was all gravy.
Posts: 11
Joined: Oct 2015
Reputation:
0
slauz
Junior Member
Posts: 11
Hi
I managed to compile Kodi on Xcode 7.1 on Mac El Capitan for iPad iOS 9.02. At the last step when installing to iPad -XCode prompts with "Application code entitlements don't match Profile". I am using my Apple ID without a developer subscription.
Could anyone help me how to get around this problem?
Thanks