xcode12

Unable to Resolve Build File: Reference to Missing Target with GUID

ⅰ亾dé卋堺 提交于 2021-01-29 14:00:22
问题 I recently forked an iOS library on GitHub to add support to it for the Swift Package Manager. Here's the repository: https://github.com/skelpo/mapbox-gl-native-ios When I add it to a completely new iOS app and try to build it, I get this error: Unable to resolve build file: XCBCore.BuildFile (The workspace has a reference to a missing target with GUID 'PACKAGE-TARGET:Mapbox') I've found posts for similar errors, such as this one, but the reason for the build file failing to resolve is

SwiftUI: loading images with .fileImporter

主宰稳场 提交于 2021-01-29 00:09:28
问题 Goal is to load 2 different images (image 1 and 2) with the new .fileImporter modifier. Problem is I get the same image loaded to both thumbnails (image 1 and 2). Have anyone managed to do that with .fileImporter modifier? import SwiftUI struct ContentView: View { @State var openFile = false @State var img1 = UIImage() @State var img2 = UIImage() @State var fileName = "" var body: some View { Form { //image 1 Button(action: { self.openFile.toggle() }){ Image(uiImage: self.img1) .renderingMode

SwiftUI: loading images with .fileImporter

前提是你 提交于 2021-01-29 00:03:39
问题 Goal is to load 2 different images (image 1 and 2) with the new .fileImporter modifier. Problem is I get the same image loaded to both thumbnails (image 1 and 2). Have anyone managed to do that with .fileImporter modifier? import SwiftUI struct ContentView: View { @State var openFile = false @State var img1 = UIImage() @State var img2 = UIImage() @State var fileName = "" var body: some View { Form { //image 1 Button(action: { self.openFile.toggle() }){ Image(uiImage: self.img1) .renderingMode

SwiftUI: loading images with .fileImporter

这一生的挚爱 提交于 2021-01-28 23:53:00
问题 Goal is to load 2 different images (image 1 and 2) with the new .fileImporter modifier. Problem is I get the same image loaded to both thumbnails (image 1 and 2). Have anyone managed to do that with .fileImporter modifier? import SwiftUI struct ContentView: View { @State var openFile = false @State var img1 = UIImage() @State var img2 = UIImage() @State var fileName = "" var body: some View { Form { //image 1 Button(action: { self.openFile.toggle() }){ Image(uiImage: self.img1) .renderingMode

Error: Build Input file not found, when tried to run the app on iOS simulator

匆匆过客 提交于 2021-01-28 12:01:46
问题 After upgrading the Xcode to 12.2 from 11.x , I'm getting a wierd error when trying to run the app on iOS Simulator. The error is: error: Build input file cannot be found: '/Users/mrt/Library/Developer/Xcode/DerivedData/xxx-fqqnstjlfcnipqbcjbnhysubdksn/Build/Products/Debug-iphonesimulator/xxx.app/xxx' (in target 'xxx' from project 'xxx') Here the missing /xxx is the unix executable file inside the .app folder. When I try to build it on phone, there is no such error. When I checked the

iOS Simulator is Crashing on startup

烈酒焚心 提交于 2021-01-28 04:39:59
问题 I am using Xcode 12 with the iOS 13.4 Simulator. On bootup, I get this crash report. Failed to start launchd sim: could not bind to session, launchd sim may have crashed or quit responding. What can cause this? It works in Xcode 11 but not in Xcode 12. 回答1: So it problem was my project had permissions that it can only run in sudo mode. When I tried to run the simulator in sudo mode, it failed. I had to change the permissions of my project, to be able to run in non sudo mode. When this

iOS Simulator is Crashing on startup

谁说我不能喝 提交于 2021-01-28 04:24:50
问题 I am using Xcode 12 with the iOS 13.4 Simulator. On bootup, I get this crash report. Failed to start launchd sim: could not bind to session, launchd sim may have crashed or quit responding. What can cause this? It works in Xcode 11 but not in Xcode 12. 回答1: So it problem was my project had permissions that it can only run in sudo mode. When I tried to run the simulator in sudo mode, it failed. I had to change the permissions of my project, to be able to run in non sudo mode. When this

error: module was created for incompatible target arm64-apple-ios8.0

瘦欲@ 提交于 2021-01-28 02:23:42
问题 There is a website called Appetize that needs an .app bundle (a iOS Simulator build of your app) for displaying your app in a online simulator. Here is the guide of the app bundle required: https://support.appetize.io/help/how-to-upload-an-app-to-appetize-io This is the command for generating the .app bundle: xcodebuild -sdk iphonesimulator -workspace Project.xcworkspace -scheme Appetize -configuration Debug When you press the Build & Run button in Xcode and open the app in a Simulator, it

Why can I install my app on iOS 14.1 but not 14.2?

陌路散爱 提交于 2021-01-23 06:53:27
问题 Ever since installing Xcode 12.2, I can't install our app on simulators running iOS 14.2. I downloaded 14.1 and simulators running 14.1 install the app just fine. Tellingly, my coworker does not have this problem even though he's running the same version of Xcode , so a problem with my setup seems likely. I've tried uninstalling Xcode and reinstalling. I've deleted the derivedData folder. Nothing seems to help. The app builds just fine, but when it goes to install on a simulator running iOS

Why can I install my app on iOS 14.1 but not 14.2?

霸气de小男生 提交于 2021-01-23 06:53:07
问题 Ever since installing Xcode 12.2, I can't install our app on simulators running iOS 14.2. I downloaded 14.1 and simulators running 14.1 install the app just fine. Tellingly, my coworker does not have this problem even though he's running the same version of Xcode , so a problem with my setup seems likely. I've tried uninstalling Xcode and reinstalling. I've deleted the derivedData folder. Nothing seems to help. The app builds just fine, but when it goes to install on a simulator running iOS