iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.

OS X: Any way to DELAY loading of a DEPENDENT library (.dylib)?

A C++ dependent library .dylib resides in a bundle located in the app package’s Content/Frameworks. I’d like to DELAY the loading of that dependent library until I’ve completed some specific initialization. Is there any way OTHER THAN to create a Runtime-Loaded Library? Would using weak linking options prevent the .dylib from being loaded until first […]

Playing wav sound file with AVFoundation

I am using AVFoundation to play wav files. But i could not make it play. Also no errors or warnings showed up. XCode is 4.2 and device is iOS 5. – (IBAction) playSelectedAlarm:(id)sender { UIButton *button = (UIButton *)sender; int bTag = button.tag; NSString *fileName = [NSString stringWithFormat:@”%d23333″, bTag]; NSLog(@”%@”, fileName); NSString *path = [[NSBundle […]

How to determine the size (in bytes) of a file downloading using NSURLConnection?

I need to know the size of the file I am downloading (in bytes) into my app using NSURLConnection (GET). Here is my bytes recieved code below if it helps. What I need to know is how to get the filesize in bytes so that I can use it to show a UIProgressView. – (void)connection:(NSURLConnection […]

How to Build FFMpeg as iOS Framework

I’m trying to build my own Player base on FFMpeg, I succes to build FFMpeg as static library(*.a), but its need to copy another header file to use, I hope it can used like framework, but even I add header file into framework (set as public) My Demo App can not find .h file in […]

Xcode 7.3 missing Private Frameworks

I recently upgraded my Xcode to version 7.3. When I compile my exisiting project I get this error message: directory not found for option ‘-F/Applications/’ As per this post, private frameworks have been removed with Xcode 7.3. Any suggestions as to potential solutions?

Problem provisioning iPhone after 3.0.1 update

I used to be able to run my application on my iPhone that was running 3.0. After I updated to 3.0.1 I get the error: No Provisioned iPhone OS Device is Connected. I followed Apple’s guide in the terminal: ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0\ \(7A341\) / Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1 but that didn’t help.

Why does Xcode successfully build & copy my application, but won't launch it?

Developing an iPhone application on Xcode 4.5.2. Device: iPhone 4. I was preparing my application for sending it to someone through testflight. I created a distribution profile and certificate for this. I did it following this: Anyway, recently, Xcode is unable to launch my project. When I press Run, it will successfully build and […]

Linking error with Poco Net

I am stuck trying to get some code to build using the POCO libraries. I get the following when I try to build Undefined symbols for architecture x86_64: “Poco::Net::SocketAddress::SocketAddress(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned short)”, referenced from: ….. ld: symbol(s) not found for architecture x86_64 Now here is the catch: I am linking with -lPocoFoundation […]

Core Data Error With Persistent Store

I am trying to load simple data from a model using Core Data and putting it into a table view. Here is the following code for my persistent store: //AppDelegate.m – (NSPersistentStoreCoordinator *)persistentStoreCoordinator { if (__persistentStoreCoordinator != nil) { return __persistentStoreCoordinator; } NSURL *storeURL = [[self applicationDocumentsDirectory] URLByAppendingPathComponent:@”vofasmmmnmgd.sqlite”]; if (![[NSFileManager defaultManager] fileExistsAtPath:[storeURL path]]) { NSURL […]

Xcode — quickly open current file in external editor

Is it possible to set a keyboard shortcut (or maybe add some menu item somewhere) to open currently edited file in external editor? (Obviously I may do [ (right click in file tree → Show in Finder) / (right click in window title → select containing directory) ] → right click on file → Open […]