weird swift error after upgrading from 1.1 to 1.2

Alex

My project prior to the update was working fine with swift 1.1 and Xcode 6.1.1. i just upgraded to swift 1.2 and get a weird error in my AppDelegate

 func application(application:UIApplication, didReceiveRemoteNotification userInfo:NSDictionary)

and also in a class derived from UITextFieldDelegate

func textFieldDidBeginEditing(textField: UITextField!) -> Bool // called textfield for locationField clicked

saying something along the lines

Objective-C method 'application:didReceiveRemoteNotification:' provided by method 'application(:didReceiveRemoteNotification:)' conflicts with optional requirement method 'application(:didReceiveRemoteNotification:)' in protocol 'UIApplicationDelegate'

the error for the textFieldDidBeginEditing is the same:

Objective-C method 'textFieldDidBeginEditing:' provided by method 'textFieldDidBeginEditing' conflicts with optional requirement method 'textFieldDidBeginEditing' in protocol 'UITextFieldDelegate'

What is the issue?

Dejan Skledar

Just rewrite the method's name (should fix itself), and copy/paste the code in the methods. This should work.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Error after upgrading android studio 1 to 2 , won't launch 

From Dev

System.MissingMethodException after upgrading from 2.0.0-preview1-final to 2.0.0-preview2-final

From Dev

CNFE after upgrading from 6.0 to 6.1-RC1

From Dev

Error upgrading rails from 5.0.0.rc1 to 5.0.0.rc2

From Dev

Error upgrading Eclipse Kepler SR1 to SR2?

From Dev

Upgrading from Jersey 1.x to 2.x

From Dev

Thread 1: Signal SIGABRT Error (Swift 2)

From Dev

Upgrading from Jersey 1.* to Jersey 2.5

From Dev

Upgrading existing watchOS 1 project to watchOS 2

From Dev

upgrading angular 1 to 2, component model is not updated

From Dev

Weird wrong number of arguments (1 for 0) error?

From Dev

Server exiting after upgrading to Rails 5.0.0.rc1 from rails 4.2.6

From Dev

Ionic still creates v1 projects even after upgrading v2

From Dev

Error updating Swift 1 accelerometer code to Swift 2

From Dev

Error updating Swift 1 array code to Swift 2

From Dev

Upgrading from Jersey Client 1.x to Jersey Client 2.x

From Dev

Upgrading an Amazon EC2 instance from t1.micro to medium, instance storage remains same

From Dev

Upgrading from EC2 M1.large instance to M4,2xlarge

From Dev

Got error -1 from storage engine after truncate table

From Dev

No IUserTokenProvider is registered error after update identity 1 to 2

From Dev

Upgrading user passwords from salted SHA1 to bcrypt

From Dev

Powershell: Upgrading from v.1 to v.3

From Dev

Powershell: Upgrading from v.1 to v.3

From Dev

Upgrading Asp.Net Web API from RC1

From Dev

Upgrading disks in a RAID1 Synology 2-bay drive

From Dev

Reading packets from a client stops after 1 or 2 received

From Dev

Javascript, From 1 to 500, rather then 1 and 2

From Dev

Swift 2 array of tuples not working as in swift 1

From Dev

Increasing from 1 Dyno to 2 creates authenticity_token error

Related Related

  1. 1

    Error after upgrading android studio 1 to 2 , won't launch 

  2. 2

    System.MissingMethodException after upgrading from 2.0.0-preview1-final to 2.0.0-preview2-final

  3. 3

    CNFE after upgrading from 6.0 to 6.1-RC1

  4. 4

    Error upgrading rails from 5.0.0.rc1 to 5.0.0.rc2

  5. 5

    Error upgrading Eclipse Kepler SR1 to SR2?

  6. 6

    Upgrading from Jersey 1.x to 2.x

  7. 7

    Thread 1: Signal SIGABRT Error (Swift 2)

  8. 8

    Upgrading from Jersey 1.* to Jersey 2.5

  9. 9

    Upgrading existing watchOS 1 project to watchOS 2

  10. 10

    upgrading angular 1 to 2, component model is not updated

  11. 11

    Weird wrong number of arguments (1 for 0) error?

  12. 12

    Server exiting after upgrading to Rails 5.0.0.rc1 from rails 4.2.6

  13. 13

    Ionic still creates v1 projects even after upgrading v2

  14. 14

    Error updating Swift 1 accelerometer code to Swift 2

  15. 15

    Error updating Swift 1 array code to Swift 2

  16. 16

    Upgrading from Jersey Client 1.x to Jersey Client 2.x

  17. 17

    Upgrading an Amazon EC2 instance from t1.micro to medium, instance storage remains same

  18. 18

    Upgrading from EC2 M1.large instance to M4,2xlarge

  19. 19

    Got error -1 from storage engine after truncate table

  20. 20

    No IUserTokenProvider is registered error after update identity 1 to 2

  21. 21

    Upgrading user passwords from salted SHA1 to bcrypt

  22. 22

    Powershell: Upgrading from v.1 to v.3

  23. 23

    Powershell: Upgrading from v.1 to v.3

  24. 24

    Upgrading Asp.Net Web API from RC1

  25. 25

    Upgrading disks in a RAID1 Synology 2-bay drive

  26. 26

    Reading packets from a client stops after 1 or 2 received

  27. 27

    Javascript, From 1 to 500, rather then 1 and 2

  28. 28

    Swift 2 array of tuples not working as in swift 1

  29. 29

    Increasing from 1 Dyno to 2 creates authenticity_token error

HotTag

Archive