objective c - Multiple Xcode projects will no longer successfully compile on a real iOS device -


i might have accidentally edited nsattributedstring.h class and/or related class, , seems xcode projects including projects create not compile on iphone (iphone 4s ios version: 9.3.2) (my deployment target ios 9.0.).

the xcode projects build , deploy simulated iphone.

here edited list of errors when try , compile app iphone:

system/library/frameworks/foundation.framework/headers/nsattributedstring.h:13:2: prefix attribute must followed interface or protocol system/library/frameworks/foundation.framework/headers/nsattributedstring.h:16:1: expected method body system/library/frameworks/foundation.framework/headers/nsattributedstring.h:23:1: expected method body system/library/frameworks/foundation.framework/headers/nsattributedstring.h:26:1: expected method body system/library/frameworks/foundation.framework/headers/nsattributedstring.h:30:1: expected method body system/library/frameworks/foundation.framework/headers/nsattributedstring.h:32:1: expected method body system/library/frameworks/foundation.framework/headers/nsattributedstring.h:40:1: expected method body system/library/frameworks/foundation.framework/headers/nsattributedstring.h:42:1: '@end' must appear in objective-c context apppods/target support files/pods-app/pods-app-dummy.m:1:9: not build module 'foundation' semantic issue group system/library/frameworks/foundation.framework/headers/nsattributedstring.h:14:1: missing context method declaration system/library/frameworks/foundation.framework/headers/nsattributedstring.h:22:1: missing context method declaration system/library/frameworks/foundation.framework/headers/nsattributedstring.h:25:1: missing context method declaration system/library/frameworks/foundation.framework/headers/nsattributedstring.h:28:1: missing context method declaration system/library/frameworks/foundation.framework/headers/nsattributedstring.h:31:1: missing context method declaration system/library/frameworks/foundation.framework/headers/nsattributedstring.h:39:1: missing context method declaration system/library/frameworks/foundation.framework/headers/nsattributedstring.h:45:40: attempting use forward class 'nsattributedstring' superclass of 'nsmutableattributedstring' 

i using xcode 8 beta.

does know causing error?

i've tried restarting , reconnecting iphone,restarting xcode, re-staring mac, , deleting deriveddata folder. read here expected method body can caused "stray character" in code couldn't find stray character.

here nsattributedstring.h class:

/*  nsattributedstring.h     copyright (c) 1994-2015, apple inc. rights reserved. */   #import <foundation/nsstring.h> #import <foundation/nsdictionary.h>   ns_assume_nonnull_begin   ns_class_available(10_0, 3_2)  @property (readonly, copy) nsstring *string; - (nsdictionary<nsstring *, id> *)attributesatindex:(nsuinteger)location effectiverange:(nullable nsrangepointer)range;  @end  @interface nsattributedstring (nsextendedattributedstring)   @property (readonly) nsuinteger length; - (nullable id)attribute:(nsstring *)attrname atindex:(nsuinteger)location effectiverange:(nullable nsrangepointer)range; - (nsattributedstring *)attributedsubstringfromrange:(nsrange)range;  - (nsdictionary<nsstring *, id> *)attributesatindex:(nsuinteger)location longesteffectiverange:(nullable nsrangepointer)range inrange:(nsrange)rangelimit; - (nullable id)attribute:(nsstring *)attrname atindex:(nsuinteger)location longesteffectiverange:(nullable nsrangepointer)range inrange:(nsrange)rangelimit;  - (bool)isequaltoattributedstring:(nsattributedstring *)other;  - (instancetype)initwithstring:(nsstring *)str; - (instancetype)initwithstring:(nsstring *)str attributes:(nullable nsdictionary<nsstring *, id> *)attrs; - (instancetype)initwithattributedstring:(nsattributedstring *)attrstr;  typedef ns_options(nsuinteger, nsattributedstringenumerationoptions) {   nsattributedstringenumerationreverse = (1ul << 1),   nsattributedstringenumerationlongesteffectiverangenotrequired = (1ul << 20) };  - (void)enumerateattributesinrange:(nsrange)enumerationrange options:(nsattributedstringenumerationoptions)opts usingblock:(void (ns_noescape ^)(nsdictionary<nsstring *, id> *attrs, nsrange range, bool *stop))block ns_available(10_6, 4_0); - (void)enumerateattribute:(nsstring *)attrname inrange:(nsrange)enumerationrange options:(nsattributedstringenumerationoptions)opts usingblock:(void (ns_noescape ^)(id _nullable value, nsrange range, bool *stop))block ns_available(10_6, 4_0);  @end  ns_class_available(10_0, 3_2) @interface nsmutableattributedstring : nsattributedstring  - (void)replacecharactersinrange:(nsrange)range withstring:(nsstring *)str; - (void)setattributes:(nullable nsdictionary<nsstring *, id> *)attrs range:(nsrange)range;  @end  @interface nsmutableattributedstring (nsextendedmutableattributedstring)  @property (readonly, retain) nsmutablestring *mutablestring;  - (void)addattribute:(nsstring *)name value:(id)value range:(nsrange)range; - (void)addattributes:(nsdictionary<nsstring *, id> *)attrs range:(nsrange)range; - (void)removeattribute:(nsstring *)name range:(nsrange)range;  - (void)replacecharactersinrange:(nsrange)range withattributedstring:(nsattributedstring *)attrstring; - (void)insertattributedstring:(nsattributedstring *)attrstring atindex:(nsuinteger)loc; - (void)appendattributedstring:(nsattributedstring *)attrstring; - (void)deletecharactersinrange:(nsrange)range; - (void)setattributedstring:(nsattributedstring *)attrstring;  - (void)beginediting; - (void)endediting;  @end  ns_assume_nonnull_end 

thanks in advance

you deleted @interface nsattributedstring : nsobject <nscopying, nsmutablecopying, nssecurecoding> below ns_class_available(10_0, 3_2)


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -