• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: linker error nonsense?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linker error nonsense?


  • Subject: Re: linker error nonsense?
  • From: "Patrick J. Collins" <email@hidden>
  • Date: Tue, 27 Oct 2015 18:17:51 -0700 (PDT)

> Select the .m file(s) in the file navigator
> Show the file inspector (Cmd-Opt-zero)
> In the Type pop-up at the top, change the value back to “Default - Objective-C Source”.

So as I inspect all these files in my project, they all say they are "Default - Objective-C Source".

However, I went into my .pbxproj file and saw a number of entries such as:
  386F536B1B603D0E00B315C2 /* Pager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = Pager.m; sourceTree = "<group>"; };

So I did a global search/replace and turned that to sourcecode.c.objc

And now I have a gazillion of other errors when I build, things like:

  static NSNumber * const InitialDelay = [NSNumber numberWithFloat:0.25f];

  @interface Pager ()
  ...

Where it complains "Initializer element is not a compile-time constant"

Also it's complianing about functions that return structs saying "expected expression"...


Patrick J. Collins
http://collinatorstudios.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: linker error nonsense?
      • From: Kyle Sluder <email@hidden>
    • Re: linker error nonsense?
      • From: "Clark S. Cox III" <email@hidden>
References: 
 >linker error nonsense? (From: "Patrick J. Collins" <email@hidden>)
 >Re: linker error nonsense? (From: Kyle Sluder <email@hidden>)
 >Re: linker error nonsense? (From: "Patrick J. Collins" <email@hidden>)
 >Re: linker error nonsense? (From: Jens Alfke <email@hidden>)
 >Re: linker error nonsense? (From: "Patrick J. Collins" <email@hidden>)
 >Re: linker error nonsense? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: My app won't work on Mini
  • Next by Date: Re: linker error nonsense?
  • Previous by thread: Re: linker error nonsense?
  • Next by thread: Re: linker error nonsense?
  • Index(es):
    • Date
    • Thread