Search results for

Swift 6

49,211 results found

Post

Replies

Boosts

Views

Activity

Compiler - method linking issue.
Issue: During app execution, the intended method is not being called; instead, the method preceding (written above the intended method) is being executed. For Example: //In my case the ViewController class is at 3rd level of inheritance. class ViewController: UIViewController { func methodA() { print(methodA) } func methodB() { print(methodB) } } let vc = ViewController() vc.methodB() Output: //methodA Expected: //methodB Observations: Recent code changes have revealed that enabling the below Swift-6 flag leads to this linking issue. When this flag is commented out, the problem disappears. .enableUpcomingFeature(InternalImportsByDefault) Additionally, moving the intended method into an extension of the same class resolves the issue when the flag is enabled. Conclusion: To resolve the issue: Comment out the Swift-6 flag. Alternatively, move the method into an extension of the same class, which addresses the issue for this specific case. I had similar issue in other class where it crashes with
2
0
67
Apr ’25
Alamofire and SSL_ERROR_ZERO_RETURN(6)
Xcode 9.2 - Swift 4 - Alamofire 4.6.0 - PHP7 - AWS Beanstalk I'm using Alamofire to get data from a php API in my xcode project.I'm only getting part of the response back, ie 3 posts rather than 10, and I consistently get the following error.[BoringSSL] Function boringssl_session_errorlog: line 2871 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alertI've searched Stack and AppleDev for a solution, but so far nothing.Anybody ever seen or solved this problem before???
3
0
8.3k
Jan ’18
NSURLConnection not working on iPhone 6/6 Plus
I have a podcast player app uses NSURLConnection sendSynchronousRequest to get the episode list from the podcast feed. The URL for one of the podcast feeds has a username and password (http://username:password@hostname/path). Creating a request (NSURLRequest) with this URL, I use NSURLConnection sendSynchronousRequest. It returns with no error on all devices, but has the episode list content on iPhone 4S/5 and no content on iPhone 6/6 Plus.The URL for the other podcast feed has no username/password and works fine on all devices.Any idea what is up?alan
3
0
536
Apr ’16
Reply to Academic Eligibility Status
Read instructions carefully: https://developer.apple.com/wwdc22/swift-student-challenge/ Have graduated from high school or equivalent within the past 6 months and be awaiting acceptance or have received acceptance to an accredited academic institution. So if you got your degree less than 6 month ago, that is OK.
Apr ’22
Reply to I got error abort trap 6 after I update xcode 9.3 to 10.1
As the title mentioned, I got 'error abort trap 6' after I update xcode 9.3 to 10.1 then compile the Project. The Detail report is in the file.txt.I had upgraded my code from swift3.0 to swift 4.2, and got the error again.What's wrong with that?<unknown>:0: error: fatal error encountered while reading from module 'MyProject'; please file a bug report with your project and the crash log*** DESERIALIZATION FAILURE (please include this section in any bug report) ***could not find 'init(coder:)' in parent class0 swift PrintStackTraceSignalHandler(void*) 1 swift SignalHandler(int)2 libsystem_platform.dylib _sigtramp 3 libsystem_platform.dylib _sigtramp 4 libsystem_c.dylib abort 5 swift swift::ModuleFile::fatal(llvm::Error) 6 swift getSILDeclRef(swift::ModuleFile*, llvm::ArrayRef<unsigned long long>, unsigned int&) 7 swift swift::SILDeserializer::readSILInstruction(swift::SILFunction*, swift
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’19
Downgrade to IOS 6
Hey everyone,I need to downgrade an old iPad Mini 1 back to IOS 6 which automatically went to IOS 9. It is really important to have this version as an app tester and possibly later a coder. I have an .IPSW file of IOS 6 and am wondering if you might be able to change some code to make it think it is somthing like IOS 9 while it actually is IOS 6.Any ideas are welcome. Thanks in avance!
5
0
2.6k
Oct ’17
Seeing intermittent crashes on canMakePaymentsUsingNetworks() IPhone 6 and 6+
Hey there,Upon creating a new build and .ipa of our application apple pay looks to be crashing sometimes on the IPhone 6 and 6+ models. It looks to be blowing up when it tried to invoke canMakePaymentsUsingNetworks on the PKPaymentAuthorizationViewController. Our code implementaiton of this has not changes and it works fine on the 7 and X, but only after a few tries on the 6 and 6+. Our analytics tool is throwing SIGSEV crashes that look something like thisThread 3 Crashed: 0 libobjc.A.dylib 0x000000018281d7f4 objc_object::release() + 16 1 PassKitCore 0x0000000195e5bfc4 +[PKPaymentAuthorizationCoordinator canMakePaymentsUsingNetworks:webDomain:] + 76 2 SalesAndServiceApplication 0x0000000100b3b528 __45-[ApplePayImpl canMakePaymentsUsingNetworks:]_block_invoke (ApplePayImpl.m:44) 3 libdispatch.dylib 0x0000000182f36a54 _dispatch_call_block_and_release + 24 4 libdispatch.dylib 0x0000000182f36a14 _dispatch_client_callout + 16 5 libdispatch.dylib 0x0000000182f3dbc8 _dispatch_que
1
0
895
Mar ’18
Optimized for iPhone 6+, but Autolayout does not resize for iPhone 5, 6
Hi All,I created an app that is optimized for iPhone 6+ and used autolayout to work for other sizes. When clicking the different iphone sizes within the storyboard of xCode, the buttons are layout correctly (from the assigned constraints) and looks great. However, when launching the app after downloading it from the app store with an iPhone 5 or 6, my buttons are cropped. It appears to be sized for an iPhone 6+, even though I am using Autolayout. Also, when I select the iPhone 6 size class from the storyboard of xCode, then download/run the code on iPhone 6, the layout configures correctly for the size.Any clues as to why autolayout does not enable for the deployed version for iPhone 5 and 6? Did I forget to set or configure something?Thanks, RoboChow
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
309
Dec ’16
Reply to Unable to run Xcode 6.3.2 on 10.11 Beta 2
i am using a book to learn Xcode 6 and the Xcode 7 does not work with code on the book,give us time and publisher who wrote a book for xcode 6 and swift 1.2 ... omg ... if you can not help don't give us instruction of xcode 7 we already knowyou should tell us before we doing update which is work and which not workingwhat i do with my book ... i wait for to fix it or i burn it take 1 year for publsher to write of Swift 2, that was idiat beta ever
Jun ’15