xcode

Xcode has the wrong debug values while paused in the debugger

纵饮孤独 提交于 2021-01-27 10:38:09
问题 I am having a strange problem in Xcode. After I use insertObject:withIndex: on this NSMutableArray object, the debug window shows the wrong value for the array even though the correct values are show for the other locals and this assertion is one step away from passing. I noticed this was happening in the application I was developing, because it seemed the method on that object was not working correctly. I wrote the unit test to demonstrate the issue I was having, and expecting it to fail,

xcode_backend.sh: no such file or directory. Do I need to create this file?

大城市里の小女人 提交于 2021-01-27 09:35:39
问题 My Flutter Project won't run on the ios simulator and is throwing this error: Launching lib/main.dart on iPhone Xʀ in debug mode... Running Xcode build... Xcode build done. 7.6s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug === /bin/sh: /Users/pinercode/AndroidStudioProjects/bmi-calculator-flutter/packages/flutter_tools/bin/xcode_backend.sh: No such file or directory Could not

Xcode 9: Linking a static framework against another static framework

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-27 07:59:56
问题 In the spirit of Xcode 9's "revolutionary" feature, namely compiling static frameworks, we are trying to make our subprojects build as static frameworks, so they can be linked statically against the main application target. One of our sub-projects has a static framework dependency itself (Firebase). When we build the sub-project as a dynamic framework, everything works fine, but once we switch it to mach-o staticlib, suddenly, it loses the Firebase library symbols. Here is the output of nm

Xcode 9: Linking a static framework against another static framework

[亡魂溺海] 提交于 2021-01-27 07:59:12
问题 In the spirit of Xcode 9's "revolutionary" feature, namely compiling static frameworks, we are trying to make our subprojects build as static frameworks, so they can be linked statically against the main application target. One of our sub-projects has a static framework dependency itself (Firebase). When we build the sub-project as a dynamic framework, everything works fine, but once we switch it to mach-o staticlib, suddenly, it loses the Firebase library symbols. Here is the output of nm

Xcode 9: Linking a static framework against another static framework

℡╲_俬逩灬. 提交于 2021-01-27 07:59:01
问题 In the spirit of Xcode 9's "revolutionary" feature, namely compiling static frameworks, we are trying to make our subprojects build as static frameworks, so they can be linked statically against the main application target. One of our sub-projects has a static framework dependency itself (Firebase). When we build the sub-project as a dynamic framework, everything works fine, but once we switch it to mach-o staticlib, suddenly, it loses the Firebase library symbols. Here is the output of nm

Xcode 9: Linking a static framework against another static framework

 ̄綄美尐妖づ 提交于 2021-01-27 07:57:11
问题 In the spirit of Xcode 9's "revolutionary" feature, namely compiling static frameworks, we are trying to make our subprojects build as static frameworks, so they can be linked statically against the main application target. One of our sub-projects has a static framework dependency itself (Firebase). When we build the sub-project as a dynamic framework, everything works fine, but once we switch it to mach-o staticlib, suddenly, it loses the Firebase library symbols. Here is the output of nm

Set breakpoint on specific line using LLDB

核能气质少年 提交于 2021-01-27 07:52:56
问题 I am attempting to set a breakpoint on line 37 of my project in Xcode and I want to set this using LLDB. I know that I can set this breakpoint manually by clicking in the gutter, but I want to gain a better understanding of using LLDB. How would I build off of the statement below? Is that statement even heading in the correct direction? breakpoint set --file 回答1: Reference the documentation here It looks like you can set a breakpoint in a particular file and line by using (lldb) breakpoint

Requires a development team. Select a development team in the project editor

允我心安 提交于 2021-01-27 07:46:25
问题 I'm getting the following error: Code Signing Error: Signing for "AppsMobileCompany" requires a development team. Select a development team in the project editor. 回答1: You need to select your team in the general tab. If you have not set up a team you can set it up at developer.apple.com 来源: https://stackoverflow.com/questions/48890569/requires-a-development-team-select-a-development-team-in-the-project-editor

How do I put UISearchController Searchbar onto navigation bar with code

£可爱£侵袭症+ 提交于 2021-01-27 07:20:42
问题 If I embed the ViewController into a Navigation Bar, navigationItem.titleView.resultSearchController?.searchBar will put a search bar into the navigation bar. However, I've created a UISearchController and a UINavigationBar with code. This time, the navBar is showing up, but the searchBar isn't. resultSearchController = UISearchController(searchResultsController: locationSearchTable) resultSearchController?.searchResultsUpdater = locationSearchTable let searchBar = resultSearchController!

Compilation errors with M1 MacBook Pro and cmake

不想你离开。 提交于 2021-01-27 07:08:48
问题 I have just got my new M1 MacBook Pro and am trying to compile a code base required for my university work. Here are the steps I have taken: I set Terminal to always open using Rosetta. Installed homebrew using /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Installed cmake using brew install cmake Run cmake <path to source> (this works fine) Run make (this fails) Here is the error I get: /Applications/Xcode.app/Contents/Developer/Toolchains