Search results for

Request failed with http status code 503

190,853 results found

Post

Replies

Boosts

Views

Activity

Reply to Abort trap: 6
The offending code is in this file and is commented out in this version (lines 25-34):class MusicStaffViewStaffLayer: CAShapeLayer { var maxLedgerLines : Int = 0 var currentHorizontalPosition : CGFloat { get { if let sublayers = self.sublayers! as? [CALayer] { if let lastElement = sublayers.last as CALayer! { return lastElement.frame.origin.x + lastElement.frame.size.width } } return 0 } } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) strokeColor = UIColor.blackColor().CGColor } override init() { super.init() strokeColor = UIColor.blackColor().CGColor } /* override var path : CGPath? { get { return staffPath() } set { } } */ func staffPath() -> CGPathRef { let staffLines = UIBezierPath() let spaceWidth : CGFloat = self.bounds.size.height / (6.0 + 2.0 * CGFloat(maxLedgerLines)) self.lineWidth = spaceWidth / 10.0 for i in 1...(5 + maxLedgerLines) { if (i <= maxLedgerLines || i > 5 + maxLedgerLines) { continue } let height = self.bounds.origin.y + spaceWidth * CGFloat(i)
Jun ’15
Reply to Cross in-app purchase subscription
You wrote:I would like to allow the user pay for its subscription via website, or app.Questions:1 - Am I obligated to use In-App Purchase ?2 - If not, may I ask the user Credit Card inside my app ?3 - If not, may I send the user to webpage to fill billing information ?4 - If I'm obligated to use IAP, how can I recover its subscription in my site ?If the subscription will be unlocking some code within the app you must use IAP. Once the user has made the purchase the app can send some signal to your website indicating that the purchase has been made.On the other hand, if the app is just a window to your website and the subscription does not unlock stuff in the app then you do not need to use IAP. Whether or not you can use a credit card within the app depends on an interpretation of 11.2 - it's not clear. You may send the user to your website for billing information. And finally, read 11.14 - it may move you into the 'does not need to use IAP' category.
Topic: App & System Services SubTopic: StoreKit Tags:
Jun ’15
Free Provisioning failing
So, I downloaded Xcode 7 and installed it to be able to use free provisioning to test my app on an iPhone running iOS 8.3 before subscribing to the developer program. Connecting my iPhone, I see it in the toolbar and on the device list in Devices window.I also added my Apple ID in the Preferences' Accounts Tab and it shows Free under iOS and Mac next to my name. Nevertheless when hitting the play/build-and-run button Xcode at first starts building the app but before transferring, I guess, it stops and tells me it was Unable to find a team with the given Team ID '<My ID>' to which you belong. Please contact Apple Developer Program Support. https://developer.apple.com/support, any suggestions what to do?I removed and added my account several times, getting the same message all of the times.
2
0
1.2k
Jun ’15
Can't fetch JSON due to NSInvalidArgumentException
Hey guys,since NSURLConnection is deprecated in iOS 9, I'm trying to replace it with the recommended NSURLSession. When the completion handler of my NSURLSessionDataTask is getting called my app terminates due to an uncaught exception 'NSInvalidArgumentException' – the reason: 'data parameter is nil'. Of course a corrupt URL can be the reason for this error, but I've already checked that. Now, let me show you my code:- (void)downloadItemsWithQuery:(NSString *)searchString { NSString *theQuery = [searchString uppercaseString]; NSString *encodedString = [theQuery stringByAddingPercentEncodingWithAllowedCharacters: [NSCharacterSet characterSetWithCharactersInString:@!*'();:@&=+$,/?%#[]]]; NSURL *theURL = [NSURL URLWithString:[NSString stringWithFormat: @http://alexpoets.com/VPlan/service.php?klasse=%@, encodedString]]; NSURLSessionDataTask *dataTask = [[NSURLSession sharedSession] dataTaskWithURL:theURL completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { _downloaded
13
0
3.9k
Jun ’15
Strong reference cycle in a closure
I've thought whole day but don't get it: why the following code doesn't cause strong reference cycle?class C { var m: () -> () = {} init?() { println(init) } deinit { println(deinit) } } var ci = C() ci?.m = { println(ci) } ci = nilIn fact, ci has a strong reference to m which has a strong reference to ci.. but the output is:> init > deinit
3
0
512
Jun ’15
Urgent: All my provisioning profiles suddenly expired and all apps stopped working
I signed in this morning to developer.apple.com to find that I need to sign some contract with the new terms of service. I couldn't even access most of the site before I signed it. So I did.After that I visited my provisioning profiles section https://developer.apple.com/account/ios/profile/profileList.action?type=production to find that all my provisioning profiles have become expired.Also my apps already on the appstore started crashing. They crash upon launching. Currently none of my users are able to use the app unless they redownload the app from the appstore. I don't know why it works if you redownload it, but I am guessing it has something to do with the provisioning profile issue since:1. this issue is not unique to one app2. I didn't even submit a new version. The apps were running perfectly fine until a few days ago.3. I tried renewing one of the provisioning profiles for a test app and rebuilt it, and the test app started working again.Right now I don't know what I am supposed to do. My us
3
0
1.7k
Jun ’15
Xcode 7 crashes on startup
I've downloaded the .dmg, copied to Applications, waited for the verification - said 'open' once the verification is done then Xcode crashes. I'm running 10.10.3 which I think should work. I've tried uninstalling, re-downloading and re-doing the process with not luck. Has anyone else encountered this problem? Thanks.This is the error:Process: Xcode [396]Path: /Applications/Xcode-beta.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 7.0 (8123.26)Build Info: IDEFrameworks-8123026000000000~7Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [396]User ID: 501Date/Time: 2015-06-10 17:25:29.684 -0400OS Version: Mac OS X 10.10.3 (14D136)Report Version: 11Anonymous UUID: A4A041F0-414B-EB94-4B70-43B0C8715464Time Awake Since Boot: 320 secondsCrashed Thread: 0 Dispatch queue: com.apple.main-threadException Type: EXC_CRASH (SIGABRT)Exception Codes: 0x0000000000000000, 0x0000000000000000Application Specific Information:ProductBuildVersion: 7A120fASSERTION FAILURE in /Library/Caches/
6
0
2.0k
Jun ’15
Reply to WPA 2 Enterprise wireless not working?
Pointed here by @cjacksonsq - seeing the same. We're getting SSLHandshake failed and EAP-TLS:authentication failed errors in logs. I've got a bug in with Apple and have sent additional logs they requested.Also: we're seeing this on latest 10.10.4 build as well. Which is much more dire since it'll be out sooner, and available as an auto-update to most.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to WCSession sendMessage returning errors (simulator)
WCErrorDomain error 7004 is WCErrorCodeSessionNotActivated, so you are probably not doing the WCSession setup in the WatchKit extension like you are in the iOS app. Both side need to individually set up and activate their WCSession.Also, you might want to move the setup of the WCSession in your iOS app to a part of the code that gets called when your app gets launched in the background.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
IOS App Install Fail Over The Air
Hi, I'm using Xcode6 and created a test app for ipad. It compiles and runs fine in simulator. My next step is to distribute it using adhoc distribution mechanism. Here is what I've done1. Using Keychain Access to create a public/private key pair.2. Load it up into Developer Center to create a certificate, then download it.3. Add my ipad UUID under Devices.4. Create a adhoc provisioning profile by including my ipad in it, I only have one device in Member Center. Let's call the provision MyProv.5. Run the .cer file by double clicking it.6. Download the .mobileprovision file from Member Center to desktop. Then double click it.Now, in Xcode, under Build Setting, I change Provisioning Profile Debug and Release entry to point to MyProv, then run Product->Archive. When archiving the app, Xcode as me if I want to use my key created in step 1 above to sign the bundle. I allow it. I also choose to Save for ad hoc distribution when asked. In the summary page, I can see the Provisioning Profile column shows 'MyProv, t
2
0
1.7k
Jun ’15
Reply to Strong reference cycle in a closure
If you add a bit of code and run it in a playground (Xcode 7 beta):class C { var m: () -> () = {} let identity: String init?(_ name: String) { identity = name print(init (identity)) } deinit { self.m() print(deinit (identity)) } } var ci = C(a) ci!.m = { var text = reference = (ci!.identity) print(text) } ci = C(b)when ci.m is run in deinit, it actually prints out reference = b even though it is deallocating a.The closure is actually capturing a reference to the local variable c1, not a reference to the instance that c1 is pointing to at the time. So no strong reference cycle is created.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15