Unresolved identifier Errors

Hello,


I've been creating apps while taking an online xcode/swift class this afternoon without problems until now. I've just created a new app and the only thing different than before was checking the box to use source control with git. I'm using Xcode 8.1 and swift 3.x and chose the single view application option. Xcode creates the development files and before I can do anything, 2 errors show up.


9 import UIKit

10

11 class ViewController: UIViewController {

12

13 override func viewDidLoad() {

14 super.viewDidLoad()

15 // Do any additional setup after loading the view, typically from a nib.

16 }

17

18 override func didReceiveMemoryWarning() {

19 super.didReceiveMemoryWarning()

20 // Dispose of any resources that can be recreated.

21 }

22

23

24 }



The first error is line 17 (which is blank) and says: Use of unresolved identiifer 'url'

The second error is line 18 and says: Use of unresolved identiifer 'request'


Line 18 also seems to have "MemoryW" highlighted (see line 18 above)


This is all code that Xcode created, I've not typed a thing. I sure would appreciate help in figuring out what is wrong.


Thanks!

Answered by Claude31 in 198225022

3 things you can try :

- do a complete clean (option-click in menu Product / Clean Build Forlder

- copy and paste the whole text into an editor to chexk there is no hidden character

- if not working, retype from a blank sheet

Accepted Answer

3 things you can try :

- do a complete clean (option-click in menu Product / Clean Build Forlder

- copy and paste the whole text into an editor to chexk there is no hidden character

- if not working, retype from a blank sheet

The complete clean solution worked perfectly. Thank you!

Unresolved identifier Errors
 
 
Q