ios - XCode: Expected identifier or '(' -


We created an iOS app a while back which works perfectly on Mac on which it was developed, But which throws errors when we try to compile it on a different mac.

To move it to another Mac, we used to copy the entire source directory to the USB stick. If this is the reason for my issues, then someone has told me a better way to transfer projects.

There are several dependencies that pull through the cocaadodes in this project. The pods project / target is correctly prepared on the Mac.

Legacy compatibility reasons are compiled for both Mac Runnag XCode 5.0.2 and iOS 6.1.

The main project, we get many errors of this type:

• Expected identifier or '('

• Unexpected '@' in the program

• Expected method body

This is an example of compilation errors on one of my header files (note that once again The code is exactly the same as that which is compiled correctly on other mac):

  #import & lt; UIKit / UIKit.h> @interface DiagnosticViewCont Program: Unexpected '@' in the program - (zero) messageReceived: UITextFieldDelegate & lt; UITextFieldDelegate & gt; @property (weak, nonatomic) IBOutlet UITextView * diagnosticReadout; @property (weak, nonatomic) IBOutlet UITextField * connectionNameTextBox; (NSString *) webPublisherMessage; & lt; - Missing reference to method D. & end lieutenant; - Expected method body  

Any ideas about what is happening to anyone Is it? I can only assume that there is something wrong with some construction settings or that in path or something Are taken, but I would have seen them through all and they all look the same on both Macs.

Check that you do not have any white space character before that line. Just set the cursor at the beginning of the @ property, which is causing you problems and is trying to suppress the backspace once or twice. See if the error is removed. What is it for me?


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -