Post

Replies

Boosts

Views

Activity

Reply to Xcode Organizer crashes after update 12.5 (18205)
same for me EXC_CORPSE_NOTIFY Application Specific Information: ProductBuildVersion: 12E262 ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-18168/DVTITunesSoftwareServiceFoundation/App Loader/Wrappers/DVTITunesConnectApplicationVersionDescription.m:70 Details: (y) should not be nil. Object: DVTITunesConnectApplicationVersionDescription: 0x7fb2b6570340 Method: -initWithCoder: Thread: NSThread: 0x7fb3225777a0{number = 27, name = (null)} Open FDs: 55/7168 Hints: Backtrace: 0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit) 1 _DVTAssertionHandler (in DVTFoundation)
May ’21
Reply to Programmatically detect Apple Silicon (i.e. ARM CPU)
my 2 cents for swift: // swift implementation of ADC call let NATIVE_EXECUTION        =  Int32(0) let EMULATED_EXECUTION      =  Int32(1) let UNKONWN_EXECUTION       = -Int32(1) func processIsTranslated() ->Int32 {     var ret = Int32(0)     var size = ret.byteWidth 	  let result = sysctlbyname("sysctl.proc_translated", &ret, &size, nil, 0)     if result == -1 {         if (errno == ENOENT){             return 0         }         return -1     }     return ret } func processIsTranslatedStr() -> String {         switch processIsTranslated() {         case NATIVE_EXECUTION:             return "native"         case EMULATED_EXECUTION:             return "rosetta"         default:             return "unkown"         } } ```     
Jul ’20
Reply to swift syntax getting more complicated with nontrivial swiftUI examples; and Xcode errors are not always helpful, at least to me.
a bit in late.. but for next people... I do calc let index = col + row * self.MaxCols outside, otherwise I got your message.    let gr = GeometryReader { (geometry : GeometryProxy) in             VStack() {                 ForEach(0..<self.MaxRows) { (row: Int) in                     HStack {                         ForEach(0..&lt;self.MaxCols) { (col: Int) -&gt; GridCellView in                             let index = col + row * self.MaxCols                             return GridCellView(                                 w: (geometry.size.width / CGFloat(self.MaxCols)) - 25, // compensate inset..                                 titleAndText: firstLevelQuestions[index],                                 room: self.room,                                 troubleShootings: troubleShootings[index] )                         }                     }                 }             }             
Jul ’20
Reply to Rebuild from Bitcode and Xcode 11
I read in late, but I can say1) set to Yes if You are going on Apple Store(read here soem idea.. https://www.infoq.com/articles/ios-9-bitcode/ )2) I used it in enterprise dev, too: For final user is he same.(for quick enterrpise dev. for example is fster to leave it off, but is mainsly to save exporting time..)
May ’20