Note that there are some explanatory texts on larger screens.

plurals
  1. POGit branch merged to master causes "No Known Class Method for Selector" errors in Xcode project
    primarykey
    data
    text
    <p>I'm working on an iOS app and the first release of it went onto the app store last week, I've had some ideas on things to add to it and some things I want to change based on user feedback. I decided to do feature branches for every major new section. I completed the first feature branch and verified the app works properly without any warnings or errors.</p> <p>I merged the branch into master without any conflicts, after opening the successfully merged master in Xcode and attempting to run it I'm receiving a lot of "No known class method for selector", "Duplicate interface definition for class", and "Property has a previous declaration" errors. I've looked through all of the files it mentions and they all are exactly as they were in the feature branch. The biggest problem causing files are the Reachability one's from Apple.</p> <p>Here's an example of one of the files throwing "No known class method for selector". It's doing it for the <code>create</code>, <code>update</code>, and <code>remove</code> methods. All of these methods were added in the feature branch.</p> <p>The .h file:</p> <pre><code>// // Services.h // MovieQueue // // Created by Joshua Kendall on 2/22/13. // Copyright (c) 2013 Simple App Group LLC. All rights reserved. // @interface Services : NSObject + (NSArray *)search:(NSString *)movieTitle; + (NSDictionary *)getMovieDetails:(NSInteger)movieId; + (void)create:(NSDictionary *)record; + (void)update:(NSDictionary *)record; + (void)remove:(id)movieId; @end </code></pre> <p>And the redacted .m file:</p> <pre><code>// // Services.m // MovieQueue // // Created by Joshua Kendall on 2/22/13. // Copyright (c) 2013 Simple App Group LLC. All rights reserved. // #import "Services.h" @implementation Services #pragma mark - API Access + (NSArray *)search:(NSString *)movieTitle { ... } + (NSDictionary *)getMovieDetails:(NSInteger)movieId { ... } #pragma mark - CRUD + (void)create:(NSDictionary *)record { ... } + (void)update:(NSDictionary *)record { ... } + (void)remove:(id)movieId { ... } @end </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload