Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

167,644 results found

Post

Replies

Boosts

Views

Activity

Unable to Migrate App to WatchOS 2
When I opened my project for the first time in Xcode 7, I was given the option to convert all of my code to Swift 2, which I did. But my WatchApp was never updated to WatchOS2. Now when I try to change the Base SDK, Xcode just crashes on me. Is there any other way to migrate my WatchApp and WatchKitExtension to WatchOS 2?
0
0
361
Jun ’15
Aligning two images
Hi,I just started learning swift and was wondering, if there is any way to align two images to each other. My scenario would be the following: I have two picutures taken shortly after each other and now I have to align them. In python I am using a histogram registration approach for that and I was wondering, if an implementation of this exists already somewhere in swift. Or some other algorithm that does that.I really appreciate your help.Best,
0
0
352
Apr ’16
Reply to How to Use eSIM api
We now have eSim with SM-DP+ and Activation Code (Matching Code) from our MVNO. Upon adding these two values manually in Settings Cellular Add Cellular Plans, eSim is added. How can we pass these two values to add eSim automatically directly to device without user manually entering these two values please? Thanks Samin918144598181
Apr ’21
How do you "add" two text fields?
Ok, so in my app I have got two textfields, one label and one button. I manage to get the content of the one textfield to be displayed in the label, but i want to display the content of both of the textfields.@IBAction func buttonPushed(sender: UIButton) { Label.text = (textfield1.text) + (textfield2.text)The code above is the closest I´ve com, but the Label displays: Optionalwhatever i typed in the textfieldOptionalwhatever i typed in the textfield
3
0
5.6k
Oct ’15
If C static buffer exceed 249440 bytes, dispatch async get EXC_BAD_ACCESS code=2 on Intel simulator
Not too hopeful that anyone can explain this but here is goes. I have some C code being used from an iOS app in Swift. Logs in the C code are passed by a callback to Swift and put on a serial queue using: Log.serialQueue.async {} So, the C function could look like: int do_some_c_stuff(void) { log(Do some logging); } And in Swift we have something like this to process the log that came through the callback: class func log(_ message: String, logInfo: LogInfo = appLogInfo, type: OSLogType = .default) { Log.serialQueue.async { os.os_log(%@, log: logInfo.log, type: type, message) } } This works perfectly in all cases except one (Intel iPhone simulator only). Now, some C functions allocate a static buffer to parse incoming messages. Like this: int do_some_c_stuff(void) { log(Do some logging); char buf[100000]; } and here is the interesting part. If this buffer exceeds exactly 249440 bytes, any call to Log.serialQueue.async in the swift layer gets a EXC_BAD_ACCESS code=2 but only
5
0
1.4k
Mar ’23
Schedule 2
Hello! I would like to clarify some things regarding Apple Developer Program License Agreement (Schedule 2).i live in Belarus. And for my tax service it is important to know for what exact services Apple takes a commission of 30%.a) in p.3.4 it says: Apple shall be entitled to the following commissions in consideration for its services as Your agent and/or commissionaire under this Schedule 2: - For sales of Licensed Applications to End-Users... ...Apple shall be entitled to a commission equal to thirty percent (30%) of all prices payable by each End-User.What is this service? It is important to know whether these are marketing(promotions/advertising) services or sales services.b) in p.1.1 it says that Apple acts as my agent («Your agent for the marketing and delivery of the Licensed Applications to End-Users»). Could you please explain what is meant by marketing? Is te meaning for marketing the same as <Promotions> or <Sale>? What exact services are included in the marketing?c)T
6
0
3.2k
Feb ’19
Issue with Reachability.m in Swift 2
Hello.Updated to xCode 7 and swift 2 and now cannot implement the Reachability functionality in my application. Using the following code to check the status of connection:func statusChangedWithReachability(currentReachabilityStatus: Reachability) { var networkStatus : NetworkStatus = currentReachabilityStatus.currentReachabilityStatus() var statusString : String = print(Network Status value: (networkStatus.value)) if networkStatus.value == NotReachable.value { print(Network Not Reachable...) reachabilityStatus = kNOTREACHABLE } else if networkStatus.value == ReachableViaWiFi.value { print(Reachable via WIFI...) reachabilityStatus = kREACHABLEWITHWIFI } else if networkStatus.value == ReachableViaWWAN.value { print(Reachable via WWAN...) reachabilityStatus = kREACHABLEWITHWWAN } }Against each networkStatus.value have an error: Value of type 'NetworkStatus' has no member 'value'. How should I implement this function in Swift 2?Thanks a lot!
3
0
4.9k
Sep ’15
2 app on store
hi, is it possible have the same app with 2 names in appstore and different icons and splash screen?
Replies
3
Boosts
0
Views
866
Activity
Jun ’20
Distance between 2 ARAnchors
Is there an easy function to determine distance betwwwn 2 aranchors or the underlying matrix_float4x4 they use?Thank you!
Replies
1
Boosts
0
Views
586
Activity
Jun ’17
Unable to Migrate App to WatchOS 2
When I opened my project for the first time in Xcode 7, I was given the option to convert all of my code to Swift 2, which I did. But my WatchApp was never updated to WatchOS2. Now when I try to change the Base SDK, Xcode just crashes on me. Is there any other way to migrate my WatchApp and WatchKitExtension to WatchOS 2?
Replies
0
Boosts
0
Views
361
Activity
Jun ’15
WatchOS 2 GM
Has anyone been able to download the WatchOS 2 GM at all? If so how exactly did you do it, as I'm showing as no update available.
Replies
10
Boosts
0
Views
1.8k
Activity
Sep ’15
Reply to How to open a view
I have a window controller and two views. With my code, I open view1. I try to open view2 with code. I do not understand your code. It gives me error.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’21
Aligning two images
Hi,I just started learning swift and was wondering, if there is any way to align two images to each other. My scenario would be the following: I have two picutures taken shortly after each other and now I have to align them. In python I am using a histogram registration approach for that and I was wondering, if an implementation of this exists already somewhere in swift. Or some other algorithm that does that.I really appreciate your help.Best,
Replies
0
Boosts
0
Views
352
Activity
Apr ’16
Reply to How to Use eSIM api
We now have eSim with SM-DP+ and Activation Code (Matching Code) from our MVNO. Upon adding these two values manually in Settings Cellular Add Cellular Plans, eSim is added. How can we pass these two values to add eSim automatically directly to device without user manually entering these two values please? Thanks Samin918144598181
Replies
Boosts
Views
Activity
Apr ’21
How to handle Storekit 2 errors without JWT
Hi, I am using Storekit 2, i get the error code : 5000000. In Storekit we use SKError to spot it, in Storekit 2 how to handle this. Please suggest.
Replies
0
Boosts
0
Views
792
Activity
Jan ’23
How do you "add" two text fields?
Ok, so in my app I have got two textfields, one label and one button. I manage to get the content of the one textfield to be displayed in the label, but i want to display the content of both of the textfields.@IBAction func buttonPushed(sender: UIButton) { Label.text = (textfield1.text) + (textfield2.text)The code above is the closest I´ve com, but the Label displays: Optionalwhatever i typed in the textfieldOptionalwhatever i typed in the textfield
Replies
3
Boosts
0
Views
5.6k
Activity
Oct ’15
Airplay 2 alac
Does AirPlay 2 audio still use Apple Lossless @ 16 bit / 44.1 kHz ?
Replies
5
Boosts
0
Views
2.9k
Activity
Jun ’17
If C static buffer exceed 249440 bytes, dispatch async get EXC_BAD_ACCESS code=2 on Intel simulator
Not too hopeful that anyone can explain this but here is goes. I have some C code being used from an iOS app in Swift. Logs in the C code are passed by a callback to Swift and put on a serial queue using: Log.serialQueue.async {} So, the C function could look like: int do_some_c_stuff(void) { log(Do some logging); } And in Swift we have something like this to process the log that came through the callback: class func log(_ message: String, logInfo: LogInfo = appLogInfo, type: OSLogType = .default) { Log.serialQueue.async { os.os_log(%@, log: logInfo.log, type: type, message) } } This works perfectly in all cases except one (Intel iPhone simulator only). Now, some C functions allocate a static buffer to parse incoming messages. Like this: int do_some_c_stuff(void) { log(Do some logging); char buf[100000]; } and here is the interesting part. If this buffer exceeds exactly 249440 bytes, any call to Log.serialQueue.async in the swift layer gets a EXC_BAD_ACCESS code=2 but only
Replies
5
Boosts
0
Views
1.4k
Activity
Mar ’23
Schedule 2
Hello! I would like to clarify some things regarding Apple Developer Program License Agreement (Schedule 2).i live in Belarus. And for my tax service it is important to know for what exact services Apple takes a commission of 30%.a) in p.3.4 it says: Apple shall be entitled to the following commissions in consideration for its services as Your agent and/or commissionaire under this Schedule 2: - For sales of Licensed Applications to End-Users... ...Apple shall be entitled to a commission equal to thirty percent (30%) of all prices payable by each End-User.What is this service? It is important to know whether these are marketing(promotions/advertising) services or sales services.b) in p.1.1 it says that Apple acts as my agent («Your agent for the marketing and delivery of the Licensed Applications to End-Users»). Could you please explain what is meant by marketing? Is te meaning for marketing the same as <Promotions> or <Sale>? What exact services are included in the marketing?c)T
Replies
6
Boosts
0
Views
3.2k
Activity
Feb ’19
WatchOS 2 beta 2
I am not able to download the new beta. It says my software is up to date. Any ideas?
Replies
3
Boosts
0
Views
653
Activity
Jun ’15
Issue with Reachability.m in Swift 2
Hello.Updated to xCode 7 and swift 2 and now cannot implement the Reachability functionality in my application. Using the following code to check the status of connection:func statusChangedWithReachability(currentReachabilityStatus: Reachability) { var networkStatus : NetworkStatus = currentReachabilityStatus.currentReachabilityStatus() var statusString : String = print(Network Status value: (networkStatus.value)) if networkStatus.value == NotReachable.value { print(Network Not Reachable...) reachabilityStatus = kNOTREACHABLE } else if networkStatus.value == ReachableViaWiFi.value { print(Reachable via WIFI...) reachabilityStatus = kREACHABLEWITHWIFI } else if networkStatus.value == ReachableViaWWAN.value { print(Reachable via WWAN...) reachabilityStatus = kREACHABLEWITHWWAN } }Against each networkStatus.value have an error: Value of type 'NetworkStatus' has no member 'value'. How should I implement this function in Swift 2?Thanks a lot!
Replies
3
Boosts
0
Views
4.9k
Activity
Sep ’15
Reply to Why UINavigationbar hide when push to other controller
Could you post the code of the 2 controllers, that will be easier.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
May ’18