Post

Replies

Boosts

Views

Activity

Reply to Xcode 13.2.1 (13C100) Preview Not Working but Simulator Works!
I am having the same problem ever since updating Xcode yesterday. Here's my diagnostics screen: ---------------------------------------- CompileDylibError: Failed to build ContentView.swift Compiling failed: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/lib/swift/shims/Visibility.h' has been modified since the module file '/var/folders/jt/s96c8fv518s_1y_6925ml4sc0000gn/C/clang/ModuleCache/108X1IN8WGNX1/SwiftShims-2TTN5UXQBRCCQ.pcm' was built: mtime changed <unknown>:0: error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/lib/swift/shims/Visibility.h' has been modified since the module file '/var/folders/jt/s96c8fv518s_1y_6925ml4sc0000gn/C/clang/ModuleCache/108X1IN8WGNX1/SwiftShims-2TTN5UXQBRCCQ.pcm' was built: mtime changed <unknown>:0: note: please rebuild precompiled header '/var/folders/jt/s96c8fv518s_1y_6925ml4sc0000gn/C/clang/ModuleCache/108X1IN8WGNX1/SwiftShims-2TTN5UXQBRCCQ.pcm' <module-includes>:1:9: note: in file included from <module-includes>:1: #import "LibcOverlayShims.h"         ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/lib/swift/shims/LibcOverlayShims.h:21:2: error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/lib/swift/shims/Visibility.h' has been modified since the module file '/var/folders/jt/s96c8fv518s_1y_6925ml4sc0000gn/C/clang/ModuleCache/108X1IN8WGNX1/SwiftShims-2TTN5UXQBRCCQ.pcm' was built: mtime changed #include "Visibility.h"  ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/lib/swift/shims/LibcOverlayShims.h:21:2: note: please rebuild precompiled header '/var/folders/jt/s96c8fv518s_1y_6925ml4sc0000gn/C/clang/ModuleCache/108X1IN8WGNX1/SwiftShims-2TTN5UXQBRCCQ.pcm' #include "Visibility.h"  ^ <unknown>:0: error: missing required module 'SwiftOverlayShims' ================================== |  BuildInvocationError |   |  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -F /Applications/Xcode.app/Contents/SharedFrameworks-iphonesimulator -enforce-exclusivity=checked -DDEBUG -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk -target arm64-apple-ios14.0-simulator -Xfrontend -serialize-debugging-options -enable-testing -swift-version 5 -I /Users/danuff/Library/Developer/Xcode/DerivedData/CAI-fpvdurwckhlgpoczgdolkzdvwcyr/Build/Intermediates.noindex/Previews/CAI/Products/Debug-iphonesimulator -F /Users/danuff/Library/Developer/Xcode/DerivedData/CAI-fpvdurwckhlgpoczgdolkzdvwcyr/Build/Intermediates.noindex/Previews/CAI/Products/Debug-iphonesimulator -c -j8 -serialize-diagnostics -Xcc -I/Users/danuff/Library/Developer/Xcode/DerivedData/CAI-fpvdurwckhlgpoczgdolkzdvwcyr/Build/Intermediates.noindex/Previews/CAI/Intermediates.noindex/CAI.build/Debug-iphonesimulator/CAI.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/danuff/Library/Developer/Xcode/DerivedData/CAI-fpvdurwckhlgpoczgdolkzdvwcyr/Build/Intermediates.noindex/Previews/CAI/Intermediates.noindex/CAI.build/Debug-iphonesimulator/CAI.build/CAI-generated-files.hmap -Xcc -I/Users/danuff/Library/Developer/Xcode/DerivedData/CAI-fpvdurwckhlgpoczgdolkzdvwcyr/Build/Intermediates.noindex/Previews/CAI/Intermediates.noindex/CAI.build/Debug-iphonesimulator/CAI.build/CAI-own-target-headers.hmap -Xcc -I/Users/danuff/Library/Developer/Xcode/DerivedData/CAI-fpvdurwckhlgpoczgdolkzdvwcyr/Build/Intermediates.noindex/Previews/CAI/Intermediates.noindex/CAI.build/Debug-iphonesimulator/CAI.build/CAI-all-target-headers.hmap -Xcc -iquote -Xcc /Users/danuff/Library/Developer/Xcode/DerivedData/CAI-fpvdurwckhlgpoczgdolkzdvwcyr/Build/Intermediates.noindex/Previews/CAI/Intermediates.noindex/CAI.build/Debug-iphonesimulator/CAI.build/CAI-project-headers.hmap -Xcc -I/Users/danuff/Library/Developer/Xcode/DerivedData/CAI-fpvdurwckhlgpoczgdolkzdvwcyr/Build/Intermediates.noindex/Previews/CAI/Products/Debug-iphonesimulator/include -Xcc -I/Users/danuff/Library/Developer/Xcode/DerivedData/CAI-fpvdurwckhlgpoczgdolkzdvwcyr/Build/Intermediates.noindex/Previews/CAI/Intermediates.noindex/CAI.build/Debug-iphonesimulator/CAI.build/DerivedSources-normal/arm64 -Xcc -I/Users/danuff/Library/Developer/Xcode/DerivedData/CAI-fpvdurwckhlgpoczgdolkzdvwcyr/Build/Intermediates.noindex/Previews/CAI/Intermediates.noindex/CAI.build/Debug-iphonesimulator/CAI.build/DerivedSources/arm64 -Xcc -I/Users/danuff/Library/Developer/Xcode/DerivedData/CAI-fpvdurwckhlgpoczgdolkzdvwcyr/Build/Intermediates.noindex/Previews/CAI/Intermediates.noindex/CAI.build/Debug-iphonesimulator/CAI.build/DerivedSources -Xcc -DDEBUG=1 -working-directory "/Users/danuff/Documents/CPS/iOS/iOS 15/Projects (Current)/iPhone : iPad/SwiftUI/General/CAI" /Users/danuff/Library/Developer/Xcode/DerivedData/CAI-fpvdurwckhlgpoczgdolkzdvwcyr/Build/Intermediates.noindex/Previews/CAI/Intermediates.noindex/CAI.build/Debug-iphonesimulator/CAI.build/Objects-normal/arm64/ContentView.1.preview-thunk.swift -o /Users/danuff/Library/Developer/Xcode/DerivedData/CAI-fpvdurwckhlgpoczgdolkzdvwcyr/Build/Intermediates.noindex/Previews/CAI/Intermediates.noindex/CAI.build/Debug-iphonesimulator/CAI.build/Objects-normal/arm64/ContentView.1.preview-thunk.o -module-name CAI_PreviewReplacement_ContentView_1 -Onone -Xfrontend -disable-modules-validate-system-headers -gline-tables-only
Jan ’22
Reply to Is your Xcode13 stuck?
Yes, this is a common situation for me too. I reported it during the beta and the GM. I submitted error reports, and I still have problems. The problem happens when entering code. It just stops and hangs until I terminate Xcode via the Terminal and restart it at least 5 times a week (maybe more). It happens with Swift 5 and SwiftUI. Its annoying and inexcusable. Here's my setup: 2020 M1 Mac mini. 16GB RAM. MacOS 12.0.1 Xcode Version 13.1 (13A1030d). So YOU'RE NOT THE ONLY ONE and hope they get this resolved sooner rather than later.
Dec ’21
Reply to website to automatically sync to iOS app
You may want to look into adding the content in to a JSON file that would be on the website, and then use the json decoding commands to update any content that the website may or may not have inside your app. For an idea of what I mean. go on YouTube here: https://www.youtube.com/results?search_query=json+decoding+swift Dan Uff
Oct ’21
Reply to Show JSON output to screen?
I don't want to show the status, only the content within the articles. After looking at your code and looking at some others, I finally got it working to a point. I wish I could show you a screenshot of what I have so far. Now the articles show up on the simulator, but they are all in raw form. I think I know how to take it from here. Do I put the raw data in a form such as a tableView to be readable? Thanks.
Jul ’21