xcode

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

Declare Architecture in Podfile

橙三吉。 提交于 2021-01-28 04:01:12
问题 Is there a way to include the architecture in a CocoaPods Podfile ? I am trying to build my app for both 32 and 64 bit but when I switch to Standard architectures (including 64-bit) in my project's build settings, it complains that I should let it automatically choose architectures. Doing this reverts my project back to Standard architectures . I have a feeling that Xcode is doing this because the Pods project (in my Xcworkspace) does not include 64-bit in its architectures. Is there a way to

Xcode archive not showing in Organizer

别说谁变了你拦得住时间么 提交于 2021-01-28 03:23:40
问题 I have a React Native app I am trying to publish to the App Store. In XCode 9.4.1 when I go into Product>Archive , the project archives successfully, but the Organizer window does not open. Manually opening the Organizer view Window>Organizer shows the project but there are no archives for the project. Checking in the default Archives directory show the archive was created but is just not showing in the Organizer Some solutions I have tried inlcude In Build Settings setting Skip Install to No

How to compile OpenCV with extra modules on OS X?

泪湿孤枕 提交于 2021-01-28 02:57:29
问题 I've previously compiled OpenCV 3.0 successfully following this guide, which essentially consists of the following steps: Download all the prerequisites (XCode, Command Line Tools, CMake and OpenCV source) Build static libs by configuring CMake (via gui) with: Uncheck BUILD_SHARED_LIBS Uncheck BUILD_TESTS Add an SDK path to CMAKE_OSX_SYSROOT (if it matters, I used /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk ). Add x86_64 to CMAKE_OSX

Segmentation fault when converting to Swift 4

£可爱£侵袭症+ 提交于 2021-01-28 02:46:19
问题 I am in the process of updating a project to iOS 11/Swift 4. I have updated to Swift 3.2 and have a project that builds with one warning: "Conversion to Swift 4 available". So I click the warning and start the migration assistant with the option "Minimize Inference" when asked about Swift 4 @objc Inference. The build fails quite quickly with this message: Command failed due to signal: Segmentation fault: 11 Stack trace: 0 swift 0x000000010afabdba PrintStackTraceSignalHandler(void*) + 42 1

Stored properties cannot be marked potentially unavailable with '@available'

我是研究僧i 提交于 2021-01-28 02:37:19
问题 I found an interesting question about @available in Swift. I added a var "UISwipeActionsConfiguration" that supports iOS 11 and above to the TableView I encapsulated to support the left-slide edit and delete function of the list cell. I tried to imitate the writing of UITableView to decorate the Var, but the IDE directly compiles and reports an error. I can only try another set get method to decorate. I can't help but doubt how Apple's open source Swift source code is hidden. Compiled. Below

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

Socket is not connected in iOS Swift?

Deadly 提交于 2021-01-28 02:20:47
问题 I tried to connect the server using a socket but it refuses to connect. Here I am trying to send the query parameter(token) with the base URL to connect the server. But still, it's not connecting. Here is console output error: manager <SocketIO.SocketManager: 0x283542f00> 2020-01-23 17:59:12.872248+0530 A8FlowSampleApp[34442:7736351] LOG SocketIOClient{/}: Handling event: statusChange with data: [connecting, 2] 2020-01-23 17:59:12.872415+0530 A8FlowSampleApp[34442:7736351] LOG SocketIOClient{

SwiftUI Fatal error: Index out of range: file Swift/ContiguousArrayBuffer.swift

一世执手 提交于 2021-01-28 02:13:03
问题 I have a environment object that is an array, and a panel in my settings page where the user can add/remove values to the array...here is the list of items in the array displayed visually for the user: ScrollView { VStack { ForEach(self.env.numbers.indices, id: \.self) { number in ZStack { HStack { Text("#\(number + 1): ") .font(Font.custom(K.font.montserratMedium, size: 17.0)) .foregroundColor(Color(K.SettingsTextColor)) // Spacer() NumberTextField(self.env.numbers[number], text: self.$env