Posts

Showing posts with the label Iphone

A Valid Provisioning Profile For This Executable Was Not Found

Answer : Ok, so I solved this, somehow in trying to build for the app store I changed the build config for the "run" scheme from debug to release.. and naturally release was using a distribution cert.. which wasn't (and can't be) installed on my device. I hate xcode 4. (this aspect of it :P) What is a scheme anyway? :S I have a solution as well. This happened to me last night with the exact same error. I had a program that was previously compiling and now that I am adding an update to my app, the same error was displayed. The problem is that I forgot to change my provisioning profile back to Developer. (You set it to Distribution when uploading your app to the App Store). Here are the settings for Xcode 4.6. In your app click Targets -> YourAppName -> Code Signing Identy. Change iPhone Distribution to iPhone Developer. Your app will now compile. 1- TARGETS -> click the app-> Build Setting-> Code Signing : Make sure that both ...

Convert NSData To String?

Answer : Objective-C You can use (see NSString Class Reference) - (id)initWithData:(NSData *)data encoding:(NSStringEncoding)encoding Example: NSString *myString = [[NSString alloc] initWithData:myData encoding:NSUTF8StringEncoding]; Remark : Please notice the NSData value must be valid for the encoding specified (UTF-8 in the example above), otherwise nil will be returned: Returns nil if the initialization fails for some reason (for example if data does not represent valid data for encoding). Prior Swift 3.0 String(data: yourData, encoding: NSUTF8StringEncoding) Swift 3.0 Onwards String(data: yourData, encoding: .utf8) See String#init(data:encoding:) Reference Prior Swift 3.0 : String(data: yourData, encoding: NSUTF8StringEncoding) For Swift 4.0: String(data: yourData, encoding: .utf8) I believe your "P" as the dataWithBytes param NSData *keydata = [NSData dataWithBytes:P length:len]; should be "buf" NSData *keydata = [NSData dataWithBytes:buf length:len]; sin...

Apple - Can An IPhone 7 Be Made To Function As A NFC Tag?

Answer : The iPhone is perfectly capable of this, but this is a privilege Apple keeps to themselves. If you're jailbroken, you can install NFCWriter X and do pretty much everything you've asked for. I haven't personally checked, but I would strongly assume this is the exact same way Apple Pay works as well. So the iPhone is certainly capable of this. The problem is that apps are not capable of this, because Apple denies them the availability of such an API. The CoreNFC framework only allows reading, and the story has gone so far as that organizations have sought fully third-party access to the iPhone's NFC chip on a legal basis. They were dismissed however, with Apple Pay keeping its uniquely privileged status. No. iPhone can function only as a NFC reader. It is not possible to use it as a NFC Tag, and read it via some external NFC reader. NFC is available in iPhone 6/6 Plus/6s/6s Plus/SE and NFC with reader mode is available in iPhone 7 and later.