FAQ Database Discussion Community


Upload WatchKit app to iTunes Connect

iphone,xcode,swift,apple,watchkit
I've just created my WatchKit App for my app, and want to upload it to iTunes Connect, but when I validate my build in xCode, I am greeted with the error "unsupported architechture [armv7k]" Now that xCode 6.2 is officially released, wouldn't it be possible to upload WatchKit apps? I...

Download file in swift

ios,swift,download,apple
Newb here. I just started learning apple swift programming for iOS coming from android. I basically can now read and manipulate swift code and also learned some common classes used in iOS swift programming but still having some confusion with the syntax and everything. I'm trying to download file. Like,...

Apple development Certificate and development profile issues

ios,certificate,apple
I am trying to make an app development certificate and provision profile to test with our development team on developer.apple.com. At present, it doesnt allows me to create App development certificate. The option is greyed out this was 2 days back. Today, again i tried, then the option for iOS...

How can I change my Apple ID from Agent to Free?

apple
I have an Apple developer account to make Safari extensions, and I would like to try iOS app now that it is free. The problem is that I am listed as an agent: I searched everywhere but can't find how to change it from agent to free....

Xcode can't export enterprise app

ios,xcode,apple,maintenance
I'm just having a problem with exporting an iOS app for distribution, when I try to export it and get to the stage where it tries to connect to the developer portal in order to fetch the list of teams I get the following error: There was an error while...

Fixing custom font vertical position. Apple Font Tool Suite not available anymore?

ios,fonts,apple,vertical-alignment,custom-font
I followed the link in Fonts, and I'm redirected to the downloads site. There I can´t find the Apple Font Suite Tool package, has it been renamed? Or it doesn't longer exist? Thanks EDIT: I'm using custom fonts in my iOS app, and it seems that they add a vertical...

Swift - Issue trying to access to Singleton object

swift,design-patterns,ios8,singleton,apple
This is my first question on StackOverflow, I'll try to be specific. I am trying to implement the Singleton pattern on my app, without success so far. When I try to access to my Singleton, it seems that the program is not accessing the real singleton, but a copy of...

xcode problems installing, apple keeps telling me to upgrade?

ios,xcode,xcode6,apple
Ive just spent the best part of 3 hours updating my mac (because apple told me xcode 6 wont run unless I install 10.7.4). However, now Ive done that, apple now tells me xcode 6 wont run unless I install 10.10? Is that right? A whole new OS with no...

iOS Enterprise Provisioning Profile Invalid - App doesn't launch

ios,xcode,apple,provisioning-profile,enterprise
My Enterprise app's provisioning profile became invalid yesterday. I renewed it via Xcode, but now the app on won't launch on any devices, and it's unable to download. Do I need to re-package the app and make all users download the update? The app has 3000+ users and making them...

iOS 8: unicode of death, how does it work?

ios,iphone,ios8,apple,malware
Once sent by message to an iPhone, the victim's device will turn off. (I was skeptical about it but I tried it and the code worked.) This is the an image of the message from Cult of Mac: Can someone tell me how does it work and why?...

Automatic Scroll of Cell inside CollectionView in SWIFT

ios,objective-c,swift,apple
How can I scroll inside a collection view such that I will always see one cell at a time, occupying the whole screen? Like what you do when browsing individual photos in your iPhone's gallery. Let's say (cell 1 ) |space| ( cell 2) when I scroll to the left...

IOS - How to add In-App Purchase Details when language not available on the list?

ios,apple,itunesconnect,baker-framework
I have a problem adding new In-App purchase in iTunes Connect. The definitions gets rejected and "English" cell gets highlighted to yellow. The publication language is Polish. When adding a new In-App purchase, there is no option to select Polish language. How shall I write descriptions - in english or...

Unable to submit App with Auto-Renewable Subscriptions for a non Newsstand App

in-app-purchase,apple,itunesconnect
I have never had a problem submitting a non Newsstand App with Auto-Renewable Subscriptions. But I just started seeing this error when I try to submit app for review: Free and Auto-Renewable In-App Purchase subscriptions are only available for apps with Newsstand enabled. Remove this In-App Purchase before you disable...

Can an app in beta external testing be updated?

ios,apple,testflight
Is it possible to upload a new build to iTunes connect and update an app that is currently being tested by external beta testers without disrupting their testing? I'm worried that updating the app will require me to remove the previous version of the app they have on their device,...

Can the iPhone be virtualized?

ios,iphone,xcode,apple,virtualization
I'm currently using the iOS simulator that comes with xcode but it has limitations. I'd like to have a virtualized version of the iPhone, as close as possible to the real thing in all aspects. Does such software exist to do this? I search but nothing came up. Thanks, John

Which font / font size is used by apple for the placeholder in iOS

ios,iphone,xcode,swift,apple
I try to clone a placeholder behavior for a tableCell. It must look exactly like the placeholder used within a UITextField. Does anybody know which Font is used by Apple as well as which Font size? Thanks...

swift how to display solution for each card selectively?

iphone,xcode,swift,apple
in my app I have a Next button and a Solution button. When you press next a new card comes up (i.e. Image card1), if you press again next another card comes up in a random way. My question is how to display the solution for each card selectively (i.e....

Tilt map in Mapkit programmatically using Swift

ios,swift,apple,mapkit
I'd like to tilt the map at startup. (Same as the user does when scrolling up or down with 2 fingers) Is this possible using Swift?...

Applescript Error “can't get end of”

osx,applescript,apple,average
I am trying my hand at Applescript and can't see anything wrong with this. The Error I get is error "Can’t get end of {button returned:\"OK\", text returned:\"3\"}." number -1728 from last insertion point of {button returned:"OK", text returned:"3"} This is my code: beep set counter to 0 set tempX...

touchesMoved when two nodes across swift

ios,swift,sprite-kit,apple
I had a problem with movning some nodes around but I found a way (finally) but then I faced a problem which is : when two nodes gets across the touch will move from one node to the other ! but what I want is when I touch a node...

How can I download all of Apple's Developer Library PDFs?

ios,osx,documentation,apple
I want the PDF versions of all of Apple's documentation for reference reasons. I do not want to manually go through all of their documentation pages to download it. I've found a number of solutions in the neighborhood of what I need, but not quite exactly this. For instance, it...

iOS app not installing - have tried everything

ios,cordova,install,apple
I have spent several frustrating hours searching through mostly this site looking to see if anyone else has had this problem. The problem I have is that my app will not install on my iPad, nor would it install on the apple review persons ios device (thus it is not...

Is Apple app reject my app if my app redirected to settings page?

ios,iphone,app-store,apple
If my app have a button and it will redirected to the iPhone settings page then is apple reject my app from review ? if any one have answer or any apple support link which have written this rejection reason then please provide me. ...

iOS : How to test app on real device without spend $99 buying an account[using Xcode7] [on hold]

ios,xcode,ios7,apple,xcode7
I am a new iOS developer. I am not rich , I wonder can I test my app on real device without spending $99 buying an account? Update I mean how to use Xcode7 to do this ? (step-by-step tutorial will be better Thx!)...

Core Data and Special Characters in App Name

ios,swift,core-data,apple
I understand that if the app name contains spacing, then when we append the app name to Core Data entity class name, we need to replace the spaces with underscores e.g. My Game with My_Game. What if the app name contains exclamation mark i.e.!? How do we append the app...

iTunesConnect AngularJS Error

ios,angularjs,apple,itunesconnect
Sorry if this is out of topic. I was about to submit my app for review, when suddenly upon login I was shown nothing but a blank white page. Usually I can find the "Manage my apps", "Users", etc. Upon closer inspection on the browser console, it seems that iTunesConnect...

Xcode can't update to version 6.2

xcode,xcode6,apple
Yesterday I updated Xcode 6.1.1 to Xcode 6.2 but after update when I see about Xcode it's still showing Version 6.1.1 (6A2008a). Any idea why? Note: I already go to the App store and check it, but there is showing that it's updated and I can only open it....

Adding relative constraints the the iOS layout

ios,objective-c,iphone,xcode,apple
I want to set relative constraints to layout elements like the image below: 1) the white square must be on the top right corner filling 50% of the horizontal content. 2) the central globe must be relative to the screen size. example: on 3.5 inch device must be smaller, on...

Programmatically go back to previous ViewController in Swift

ios,swift,apple,segue
(I am using Swift) and I send the user over to a page on a button click. This page is a UITableViewController. Now if the user taps on a cell, I would like to push him back to the previous page. I thought about something like self.performSegue("back").... but this seems...

Make Username and Password input box with AppleScript

passwords,applescript,apple,username,inputbox
I would like to make a dialog input box that looks exactly like this in AppleScript: Except without the picture in the top left of the lock. Also, I need to be able to save both inputs. I know I can use tell application "System Events" to display dialog "blah...

Metadata rejected about demo account

ios,apple,itunesconnect
I have an app and It has login system with sending sms verification code. Apple rejected my app because of didn't send them to demo account but my sms verification system doesn't support foreign country. When I create them an account, they wouldn't get a verification code and they won't...

Expected end of line but found end of script

applescript,apple
This is my script and I don't know why it is saying "expected end of line but found end of script." set thanks to 1 set I_HATE_YOU to 2 set um to 3 set good to 1 set bad to 2 set dont_care to 3 display dialog "hi what is...

Will images be removed from within the local filesystem on update in iOS?

ios,iphone,app-store,apple,appstore-approval
I am saving images captured from the camera within the local sandbox (filesystem) and store the filepath within my app to show the images (using Swift). I see that if I hit play in XCode, the images will be removed (which is ok) Now I wonder what would happen if...

Organizer in Xcode 6.3.2 - No estimate binary size

ios,xcode,app-store,apple
In the previous versions of Xcode there was a place to estimate your archive/binary file size of your app. From organizer after you archive you can simply click estimate file size. In 6.3, there is no such button or function! Oddly enough in Xcode 6.2 betas this feature is still...

How to get the selected element of the iOS Voiceover

ios,iphone,swift,apple,voiceover
I have an iOS Swift App and i want to detect which element is selected by the voiceover. Have tried to send an UIAccessibilitySwitchControlStatusDidChangeNotification but i don't get this to work. NSNotificationCenter.defaultCenter().addObserver( self, selector: "handleVoiceoverSelection", name: UIAccessibilitySwitchControlStatusDidChangeNotification, object: nil) ... func handleVoiceoverSelection(){ println("!!!! element selected !!!!") } Is there any...

Status window that's always on top with AppleScript

osx,window,applescript,apple
I have a script that automates interaction with another program with a window that takes up the whole screen. I need to create a window that is always on top that I can print lines of text to so that my script can continuously give me status updates. A window...

Find iOS appNames to launch via javascript

javascript,ios,apple
I've searched and found that to open "facebook" it is: window.location = "fb://"; /* It works fine */ Instead of: window.location = "facebook://"; /* It doesn't work */ The problem is: I need to open an app like "facebook", but I don't know how to find the appName like "fb"...

Setting delegate for UIImagePicker returns error - swift

ios,swift,delegates,apple,uiimagepickercontroller
Having a problem in some swift code I had written for an OCR translation app. The code snippet is below: @IBAction func btnOCR(sender: AnyObject) { var languageAlert = UIAlertController(title: "For Your Information...", message: "The OCR feature currently only supports English & French.", preferredStyle: .Alert) languageAlert.addAction(UIAlertAction(title: "Okay", style: .Default, handler: {...

OpenCV on OSX - how to use a secondary camera rather than the default one

osx,opencv,camera,apple,webcam
In my processing code, I use opencv.loadImage(video); to load the image from the video source. This works well for the default camera on the MacBook Air. But I would like to use a USB camera. In PhotoBooth I can switch camera. What is the OpenCV command to direct the source...

Is it more efficient to reject binary or resubmit after Apple rejects?

apple,itunesconnect,iphone-developer-program
While testing my app today (not currently in the App Store), I discovered a bug that causes it to crash on iOS 7. Obviously I don't want this bug going out into the App Store, but I also want to minimize the amount of time I'm waiting for review. The...

Javascript: OS-depending Redirects doesn't work for IOS

javascript,ios,redirect,apple
i've got a pretty simple Javascript for redirecting a specific URL to an app in Google-Play-Store/iOS-Store or show an URL for desktop users depending on the client's opersting system. For the ios case the redirect is not being executed, can anyone explain what the problem is? (alert before redirect is...

how to add a button to sprite-kit programmatically with swift

swift,button,sprite-kit,apple
I want to add a button programmatically in sprite-kit until now I was able to get to this point : this is right after the class var button: SKNode! then in didMoveToView method I have this : button = SKSpriteNode(color: SKColor.redColor(), size: CGSize(width: 100, height: 44)) button.position = CGPoint(x: CGRectGetMaxX(frame),...

Modal box confirming an action is done in swift

ios,swift,apple
I am searching for something like the UiActivityView (A View that will be shown in the center, a little transparent) which just can hold a string saying "Saving Done" I could do this my myself, but I am pretty sure something like this already exists but I can't find it.....

Implicit conversion loses integer precision: 'unsigned long' to 'int' (causes app to crash)

xcode,apple
I am working through a tutorial that I found online and received the issue: Implicit conversion loses integer precision: 'unsigned long' to 'int' I have looked through some of the other post and haven't found one that helped me yet. I am new to programming and I would greatly appreciate...

how to encrypt & decrypt NSdata in plist iOS?

ios,objective-c,xcode,apple
I'm saving a name & 3 phone numbers into plist. I need to encrypt data when I hit the save button. Which one is more convenient RNCryptor or NSData + AES. How do I use it ? -(void)saveButton { NSArray *paths = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsPath = [paths...

swift println() does not display anything in a let in

swift,apple,println
Why I can't see the output of println() when it is called inside an in statement ? And how I can see this output in Xcode ? I have done this dummy test code: public class TestClass { public var testType: String = "" public func test(test:((TestClass) -> Void)!){ testType...

Automator Apple Script to convert jpeg image

applescript,apple,automator
I used below automator function to convert png image to jpeg in bulk. It worked fine and converted all images in folder at once. But quality of jpeg image is not full. Image 1: Automator Functions Image 2: Preview App shows quality of image. How can we do same in...

I accepted “Apple Developer Program License Agreement ”, but it is not hide [closed]

apple,licensing,itunesconnect,wwdc
I accepted "Apple Developer Program License Agreement" in the Member Center, but the notification is not hide in the iTunes Connect. I don't have in the Member Center any License Agreement in this moment. What do I do? It includes following Agreements, Tax, and Banking Review the Paid Applications Schedule....

How to obtain email address associated to Apple's ID

swift,email,apple
I'm doing a Swift App and I Want to know the email associated to the Apple ID who downloaded/bought the application to use it to identificate himself or herself. So for instance, if a person buy my app, he will be the unique person who can login/register because it will...

WatchKit UIPageControl Dot Colour

ios,uikit,apple,uipagecontrol,watchkit
When I was watching one of the videos from Apple about the Apple Watch and its features I noticed that the page indicator dot colours change depending on the page presented. They've also got images of the coloured dots within the Apple Watch Human Interface Guidelines App Anatomy section. Note...

“Redundant binary upload” version 1.0.1 for initial release?

objective-c,app-store,apple,version
I've uploaded a Version 1.0.0 to itunesconnect a while ago for Testflight. Now I am ready to upload my final app version, but it says "redundant binary upload". 'Seems like I have to increase the build number to 1.0.1. Isn't it possible to remove the Binary used for Testing? I...

Best way to report Xcode faults?

ios,xcode,apple
I had a problem after upgrading to Xcode 6.2. After exhaustive trial and error, posting on here and on apple dev centre, I got nowhere. I therefore re-installed 6.1 and all was sunny again in my life. However when I emailed apple I was told that there was "no special...

AFNetworking and its Repsonse (JSON). Simple check a value does not work?

ios,xcode,apple,afnetworking
I have a problem with AFNetworking and its Response. For you, this will be very simple to solve?! :-D I receive a response as a json and then i use the values of the response. The response in the log looks as follows: { data = { name = john;...

Should client buy apple developer account to submi app to store?

ios,xcode,app-store,apple
If I need to submit app on app store for client should I ask client to buy developer account so I can upload it for him through xcode?

Is there any open source tool for distributing .ipa or apk file (enterprise .ipa file) without pushing on Appstore or play store

ios,iphone,apple,hybrid-mobile-app,objective
I just would like to know, is there any possible ways for sending enterprise .ipa (Not developer or ad-hoc or app-store) through any open source tool. If yes please suggest me that tool or software. Actually flow is like we will send the .ipa file to the users by email...

Can you still access your app from iOS after your Apple Developer enrollment is expired?

ios,iphone,apple
I submitted an app to the iOS store about 2-3 years ago. This was back when iOS 6 was still around. My Apple Developer account has been inactive since ($99 / year fee, bah!). When I attempt to log into my account, I can't seem to access iTunes connect even...

How to display Apple San Francisco's numbers mono-spaced rather than proportionally?

osx,fonts,apple
I've recently installed El Capitan on OSX, which comes with the new San Franciso font as system font. The apple presentation here https://developer.apple.com/videos/wwdc/2015/?id=804 (Bit of an overview here: http://codemotionapps.com/san-francisco-display-vs-text-compact-vs-normal-a-brief-review/) states that, by default, numbers are displayed proportionally. They do allow to switch to displaying them mono-spaced (at least in their...

iOS version affecting app download

ios,swift,apple
I recently submitted an app to the app store and it was approved, however it appears that I'm almost the only one that can download it. I've asked family and friends to download it on their devices but they just get a message saying something along the lines of "iOS...

How to start audio in a browser in iPhone without user confirmation?

javascript,ios,iphone,apple
I wrote a script in PHP that beeps if there is space in the course i want to register. The problem is I gotta keep my PC open for it to work and i can't carry it with me 24/7. Now if I open that page on my iphone it...

SLComposeViewController : Does it handle FaceBook API Upgrade commencing on may 2015?

ios,facebook-graph-api,apple,social-framework,slcomposeviewcontroller
Facebook api is upgraded. Hence v2.x api calls are no more valid from april 30th 2015. I'm using SLComposeViewController in my app. Does this changes by Facebook will affect my app? Is it safe to continue using SLComposeViewController? Please do suggest.

How can I change the value of AuthorizationStatus from a ABAddressBook to kABAuthorizationStatusAuthorized?

ios,objective-c,xcode,apple
Im needing to access my contact list but since my ABAddressBook keep returning 0 from ABAddressBookGetAuthorizationStatus, I wont be able to access them.

Apple Watch notification center

apple-push-notifications,apple,watchkit,apple-watch
What is that notification's in the notification center called? Is it just notifications? How to view it: After a notification shows up: ignore the notification, go to the watch home screen, go to the clock app screen, drag from the top to the bottom of the screen to see the...

Does Paypal need to review my iOS app before i release it to the App Store?

ios,objective-c,paypal,apple
Ive just finished an app that has PayPal integrated, however while some of PayPals documentation states that Paypal needs to review the app I've read elsewhere that they have now changed it so you can just release it with the live credentials. Could anyone clarify this for me? Thanks in...

Facebook login reloads in the Captive Network Portal

facebook,apple,captivenetwork
We created a page which allows the user to connect to Facebook, but when this page is opened in the Captive Network Portal from Apple the login.php-page from Facebook keeps reloading.

How to change Apple watch table cell background?

background,apple,tablecell,apple-watch
I am having trouble setting an image for a custom background for a apple watch table cell. When I look at the interface.storyboard and the storyboard preview it displays the background image I have selected in the the inspector (a dark grey background with a vertical blue bar on the...

Is there an API hook to identify mobile app deletion

ios,apple
Is there an API hook to identify mobile app deletion. I would like to perform a action, whenever the mobile app is removed from a device from the list of installed apps.

Xcode 6.3: Estimated app's store size

ios,xcode,apple,xcode6.3,xcode6.3.1
After archiving an app. version and on the organiser window there was a button, clicking it calculates and displays the estimated size of the app. on the store. In this version, 6.3, that button disappeared! Is there still a way to know the estimated app. size?...

Apple TestFlight: “this version is no longer available for testing”

ios,app-store,apple,testflight,beta-testing
I've been using TestFlight for my internal beta testings, everything was set and it was working for a while. after one of the submitted binaries got rejected from AppStore review, there seems to be a problem. On any new uploaded binaries and turning on the Beta testing switch in iTunes...

distribute ipa to phone not added to the provisioning profile

ios,iphone,apple,ipa
How can i distribute an ipa to phones that are not added to my provisioning profile? i'm interested in not using TestFlight for some other technical issues. Do i require an enterprise apple account? I found an example online. Here are some captions: ...

Sha1 hash is different in the Unity3d editor and on the iPhone6 device

ios,hash,unity3d,apple
I'm running the code var signatureBase = "CAAVRwZBSsH38BAJF7Ct1wUF3GRctdE9a0mHpmMZCa9UtlQMZBRaVC9dupKBuqlPp2BL7x12muSo0p9YZCnwajGBR7UJsNhIr9JWtnWJCaqf3k8azY50Ka87umbvd6mQKo19en0t5wCKRyPITCJtm4WP74MYa8XVNPyL1YABTwZB6xWsh37ZA0ISvDvoMVRfGLzkkWulZA8qqZC71b4kRWkBB"; byte[] signatureBytes = new SHA1Managed ().ComputeHash (System.Text.Encoding.UTF8.GetBytes (signatureBase)); SoapHexBinary shb = new SoapHexBinary( signatureBytes ); Debug.LogError (shb.ToString()); and getting different results: device:...

Apple Mach-O Linker Error, after changing project name

xcode,swift,error-handling,linker,apple
Im making an app in Xcode 6.1.1, and just changed the name of the app, and afterwards im getting this "Apple Mach-O Linker Error" build failed error. It says "ld: file not found:", so it properly because it cant find the placement of some file with the new name.. any...