Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,573 results found

Post

Replies

Boosts

Views

Activity

Swift 2 closure with throw
Hello guys,While using Swift 2 I got one problem – how to throw inside closure of function. Example:// this func can't be changed and modifiedfunc httpRequest(param:String, completionHTTP:(result:String) -> Void){ completionHTTP(result:some result)}// this func can be changed and modifiedfunc myFunc() throws { httpRequest(param1) { (result) -> Void in throw NSError(domain: MyDomain, code: 0, userInfo: [NSLocalizedDescriptionKey: Error description]) }}myFunc - gives error of invalid conversion from thowing function to non-throwing functionHow can I call throw inside of closure of non-throwing func?
10
0
3.5k
Aug ’15
WatchOS 2 and CFNetwork
The framework directory for Watch OS 2 has CFNetwork framework in it, but instead of header files there is a file called /WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CFNetwork.framework/CFNetwork.tbd.Presumably this is a shorthand method of saying TBD. Yet this obviously has a dramatic impact on whether something can be ported. Can we get a clearer picture of which APIs there are going to be included?
1
0
528
Jul ’15
Move 2 UIImageview and repeating
Hey guys, I am new to code :) but not exactly that much new coz My first app is getting to be done to post to appstore :) Just little problem Using x-code and UIKit, I want to repeat 2 images for background of my app. I used a cadisplaylink timer to move them, and it is working, after the image1 goes offscreen, I remake it in new position and it is positioned right next to image2 but after 3 or 4 time of positioning, the images start to have distance between each other.How can I have them stick together again? if (bGround1.frame.origin.x <= -viewWidth) { bGround1.frame = CGRectMake (viewWidth, 0, bGround1.frame.size.width, bGround1.frame.size.height);} if (bGround2.frame.origin.x <= -viewWidth) { bGround2.frame = CGRectMake (viewWidth, 0, bGround2.frame.size.width, bGround2.frame.size.height);} Image link : http://i.stack.imgur.com/B72UY.png Plz tell me ifmore details are needed. Thanks for any help :)
0
0
375
Nov ’15
Duns Approval Code
Hello, We have registered the application that we have developed. We were working on publishing the application on Apple Store but it requires duns approval code. We have been waiting for the approval code since 2 weeks. We would like to know any estimated date to receive the code and we also would like to know which e-mail will you send the code. Best Regards
Topic: Code Signing SubTopic: General Tags:
0
0
277
Dec ’20
Code Sign
Hi! I found a thread on the Apple forum about Code Sign/cdhashes, and there's a part where say Also note that you'll get different values for each architecture. The example above was run on Intel, and so you get the Intel architecture's cdhash. To get the Apple silicon one, specify the --arch argument In my code, I have a dictionary with the value of cdhashes of myapp in arm64 and I test this value, but I would like to know if there is a way to receive this cdhashes with the two architectures x86_64 and arm64 by the xcode code itself, just in case run on another architecture, keep working
0
0
241
Apr ’22
Reading from a file swift 2
I'm trying to read a file which exist with the below code in Swift 2. It seems to be failing. Appreciate any inputs:let someText = NSString(string:some text)let destinationPath = /users/johnt/myFile.txtvar filemgr = NSFileManager.defaultManager()if filemgr.fileExistsAtPath(destinationPath) { print(File exists) do { let readFile = try String(contentsOfFile: destinationPath, encoding: NSUTF8StringEncoding) // Throws this error// How do I read the file contents from here? print((readFile)) } catch let error as NSError { print(Error: (error.domain)) }} else { print(File does not exist) do { try someText.writeToFile(destinationPath, atomically: true, encoding: NSUTF8StringEncoding) } catch let error as NSError { print(Error: (error.domain)) }}
4
0
14k
Aug ’15
Combine two applications
Is any mechanism how to combine two applications?Here is my situation. I made separated versions of app for iPad and iPhone. Now I prepared update and I have only one universal app (using bundle ID of iPad version). Of course I would like to offer this update for people who bought iPad and iPhone version in the past.Is there any solution?Thank you
4
0
6k
Aug ’15
Two errors -- binary not optimized for iphone 5 (error 90096) and invalid code signing (error 90163) when submitting to iTunes
I have two issues when I upload to iTunes and I’m not sure if they are related to each other:ERROR ITMS- 90096: “Your binary is not optimized for iPhone 5 ……” This is weird because I have the correct splash screen included which is Default-568h@2x with the file size being 640 x 1136. Not sure why I’m getting this error. I've submitted several apps with this splash screen size and having had a problem in the past.ERROR ITMS- 90096: “Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning file. The bundle contains a key that is not included in the provi…… “beta-reports-active”. I know that this issue is being caused by the beta-reports-active tag. I’ve researched this issue but have not found anything that definitively solves this problem. For this building I’m using a production certificate and provisioning profile. I am attempting to upload the app for TestFlight App so I need to solve this problem.My devel
6
0
705
Feb ’16
Merge 2 Apple IDs
Now that Apple is allowing users to merge two Apple IDs, how does one remove/delete songs from the Primary Apple ID music library? Is it a no-no to merge two Apple IDs? The notes on merging suggest this is a problem but offer no workaround. The only option I can see is to hide songs. Is this sufficient to allow the merging of two Apple IDs?
1
0
100
Mar ’25