Use Private FRamework in Xcode Celestial - iphone

I'm a Xcode beginner so I would really appreciates if the answers were as much detailed as possible (if image could be included it would be best)
I would like to use the celestial private framework, I do not care if it get rejected by the app store since it's a private project.
I would like to use the AVSystemController in the celestial framework.
If I go to the xcode directory, I find only an exec file in the framework.
I found the headers files at:
https://github.com/masbog/PrivateFrameworkHeader-iOS-iPhone-5.-
download:
https://github.com/masbog/PrivateFrameworkHeader-iOS-iPhone-5.-/archive/master.zip
The questions are:
1-Do I add the framework that's included in the xcode directory the one that has only on file (exec named Celestial)? or should I add a headers folder first and put all the downloaded headers in it?
2-IS Github a trusted site? btw I couldn't help but noticing that the downloaded zip file headers (at least the AVSystemContriller.h ) are different then the ones you directly open on the website
3-After adding the the celestial framework (in the linked Binary with librairy of the project ) to use it I should use #import but I get an error not found
The purpose of this project is to turn the iphone to silent profile by code.
Please Help, I've been reading threads all over the internet and I wasn't able to solve it.
P.S.: Like I said before I am a beginner so it would be appreciated to detail you answer as much as possible
Thank You

dumping private header is for helping you to find functional without documentation, to load private framework you just type on your code like this :
NSBundle *b = [NSBundle bundleWithPath:#"/System/Library/PrivateFrameworks/WhatEver.framework"];
that mean, you will load/use private framework at your iDevice :)

Related

problem sending mail from backend file not found iphone

i'm trying to use the skpsmtpmessage to send emails from backend. In the README.txt it says:
To use this in your app include the following files in your project:
SKPSMTPMessage.*
NSStream+SKPSMTPExtensions.*
That should mean that i have to include the .h .m files in my project. Now, after i've done that i get an error NSData+Base64Additions.h not found, so i imported the missing classes for this 'skpsmtpmessage' project but i get tons of errors like:
Undefined symbols for architecture armv6:
"_kCFStreamSSLLevel", referenced from:
-[SKPSMTPMessage parseBuffer] in SKPSMTPMessage.o
i get the same errors if i even remove the import lines. I cleaned the project but it doesn't help at all.
Has anyone used this library before? Have you experienced this errors before? I need some guide.
Thanks in advance!
Have a look at the header files for the project you've downloaded. You'll see this:
#import <CFNetwork/CFNetwork.h>
This means that the class uses the CFNetwork framework. You will need to add it to your project in Xcode and make sure that your target links against the framework.

create our own frame work in iphone

There are lots of the frameworks available for different purposes, but I want to create framework library for my some of my classes -- in that all the .m files are loaded in single .a file and it's used with the list of header files.
Can any one tell me how to create a framework?
This webpage should give you the necessary information when creating your own framework.
http://accu.org/index.php/journals/1594
Hope this helps!
You can create a "Cocoa Touch Static Library" project in Xcode.

iPhone HTML Parsing using TouchXML and tidy

I'm trying to parse HTML using TouchXML. However, it seems that the data I want to parse (I do not control the source, it's downloaded from the internet) is partially malformed - I get various errors during the parse. Therefore, it seems that I should be using the inbuilt tidy support to fix the HTML but I cannot seem to find any documentation or information on how to enable it or link libtidy successfully into my project.
If anyone has any information on how to do this, it'd be much appreciated. Alternatively if there's another tool I could be using to do this - do tell me!
Actually, you can both link to the framework and include the headers, without needing to download the source.
Link to the existing framework libtidy.dylib
Add /usr/include/tidy to HEADER_SEARCH_PATHS
Turns out that although the framework can be linked in to an xcode project, the headers are missing. I have got around this by downloading the HTML Tidy Source (src and include directory) and added them in to compile as part of my xcode project.

Converting Framework to a Library

I want to use the framework found at the link below within an iOS app. I have it working within the simulator but after some digging it looks like you are unable to use frameworks on devices and especially when distributing through the App Store. Please correct me if I am wrong.
https://github.com/mirek/YAML.framework/
How would I go about converting this framework to a library? I have looked at simply dragging the files from the framework to the app which doesn't work.
Thanks in advance.
It's super easy.
Give the general iOS static framework structure:
3rdPartyLib.framework
|---3rdPartyLib -> Versions/Current/3rdPartyLib
|---Headers
|---Resources
|---Info.plist
|---SomeBundle.bundle
|---Versions
|---A
|---Current -> ./A
You have to
1) Copy the static library file in a new folder
3rdPartyLib.framework/Versions/Current/3rdPartyLib
2) Rename is with .a extension and copy to a new folder
3rdPartyLib/
|---3rdPartyLib.a
3) Copy all the headers in the folder
3rdPartyLib.framework/Headers
in a new headers folder in the new folder
3rdPartyLib/
|---Headers/
At this point you should end up with
3rdPartyLib/
|---3rdPartyLib.a
|---Headers/
This is your static library that you can use within your app or within another iOS framework to be distributed to other apps.
Take a look at this: https://github.com/Ecarrion/YAML.IOS
Just grab the YAML.Framework folder
And you actually can use framework, you just can't use dynamic libraries.

"Untar" file on iPhone

I'm writing an iPhone app which downloads a tar-gzipped file from a Webserver, then needs to unarchive this file so that it can be copied into the app's Documents folder.
I'm using tar/gzip because I want to download a whole bunch of small files in one HTTP request, to make everything nice and fast.
I've investigated solutions like http://www.feep.net/libtar/, but as a C/Objective-C newb, I can't get any of them to compile for the iPhone platform.
(I felt like I should just be able to do a system call to "tar -zxvf myfile.tar.gz", but it would appear it's not that easy!)
So is there a simple way to just un-tar a file on the iPhone? Or am I going about this all wrong, and is there a better way to do this?
Thanks in advance!
Nik
This blog post should help you:
http://blog.hawkey.org/?p=332
EDIT: Google cache version of the same page which actually links to a forum post here which links to a Google Code project here, containing some code which implements unzipping on iOS.
Here is a light untar library for iOS : https://github.com/mhausherr/Light-Untar-for-iOS
Complete blog post about the solution : http://blog.octo.com/en/untar-on-ios-the-pragmatic-way/
Hope this helps,
Vincent
I took a different approach by building libarchive and bz2lib as a static library for iOS. You can find it here:
http://github.com/davepeck/iOS-libarchive/