xcode-project

Git not able to recognise addition of .xcscheme files in xcode project

给你一囗甜甜゛ 提交于 2020-07-05 07:18:18
问题 Added a new scheme corresponding to a test target in my xcode project. The new xcscheme file created is not getting reflected in git. Also doing a git status shows me nothing to commit, working directory clean . Trying to add it through terminal by git add .xcscheme says The following paths are ignored by one of your .gitignore files: MyProject.xcodeproj/xcshareddata/xcschemes/MyProjectTests.xcscheme Use -f if you really want to add them On verifying my .gitignore file, its completely blank.

How to disable Bitcode on Carthage dependencies

﹥>﹥吖頭↗ 提交于 2020-02-05 03:27:44
问题 How to disable Bitcode on dependencies where it's enabled? This question is the opposite scenario of the question "Bitcode disabled on Carthage dependencies". Unfortunately, while the given answer by the OP was using a nice trick by stripping all instances of ENABLE_BITCODE = NO; in the project file, it's inapplicable to add that line where it's missing. 来源: https://stackoverflow.com/questions/55607492/how-to-disable-bitcode-on-carthage-dependencies

In Xcode, how can you check environment variables to know which build configuration or scheme you have selected?

感情迁移 提交于 2019-12-24 14:57:24
问题 From my script in "Run Script" under the Project > Target > Build Phases is there a way to know which build configuration you have run I want to copy some private bundle files if it's the Debug build config, but not copy them if it's the Release config. Is there a way to either set an Env Variable in the Build Config, or simply get the name of the build config when running? Thanks! 回答1: This worked for me: if [[ "$CONFIGURATION" == "Debug" ]] then echo "Copying ./BundlePrivate b/c

Classes in Swift files inside folder references not seen by Xcode 10's compiler

好久不见. 提交于 2019-12-13 03:36:02
问题 We have a project with nearly 1K Swift files. It just works well if everything is inside groups, but when trying to add some folder references to directories that contain Swift files, the compiler just can't see any thing defined inside these files (classes, for example). It works well for bundle and data files, but not for source code. I also tried changing existing groups to folders using different methods (dragging, using the menu and manually browsing, etc.) and XCode stops seeing the

What tools support editing project.pbxproj files?

我是研究僧i 提交于 2019-12-06 08:30:08
问题 I want to edit project.pbxproj straight up using command line (for CI server script) what tools can allow me to do this? I used to use PlistBuddy to edit the output Info.plist ; however, what i really want to do is to edit this user defined field, which is used in multiple places, and i really don't want to have to hunt that down in every plist location 回答1: Maybe you went the wrong way. If you have a frequently changing parameter, it is easier to carry out it in * .plist as a setting.

Removing unused frameworks in Xcode?

余生长醉 提交于 2019-11-30 12:03:24
Over time when you develop an application you add new libraries to it, new frameworks needed for the libraries to work. Then you remove libraries and if you are like me you have forgotten to remove the frameworks that you initially added. Is there a way to find out what frameworks are needed for my code to function? I just delete the questionable frameworks from the link phase in Xcode (or the xcconfig, if you define them there) and reintroduce the frameworks based on ld's errors. If you are targeting multiple OS versions, it may be a good idea to also build and link against those SDKs since

Why isn't my cocoapods post_install hook updating my preprocessor macros?

邮差的信 提交于 2019-11-30 09:47:18
I've been going round and round for a couple days now trying to figure out why my post_install hook isn't producing the output I'm expecting. Here's my Podfile: source 'https://github.com/CocoaPods/Specs.git' target "SCCommon" do platform :ios, "6.0" pod 'AFNetworking', '~> 1.2.1' pod 'Mantle', '~> 1.3' pod 'PubNub', '3.5.5' end target "SCCommon-TestHarness" do platform :ios, "6.0" # inhibit_all_warnings! pod 'SCCommon', :path => '../SCCommon.podspec' end target "SCCommon-UnitTests" do platform :ios, "6.0" # inhibit_all_warnings! pod 'OCMock', '2.2.3' pod 'SCCommon', :path => '../SCCommon

Removing unused frameworks in Xcode?

主宰稳场 提交于 2019-11-29 17:19:46
问题 Over time when you develop an application you add new libraries to it, new frameworks needed for the libraries to work. Then you remove libraries and if you are like me you have forgotten to remove the frameworks that you initially added. Is there a way to find out what frameworks are needed for my code to function? 回答1: I just delete the questionable frameworks from the link phase in Xcode (or the xcconfig, if you define them there) and reintroduce the frameworks based on ld's errors. If you

Why isn't my cocoapods post_install hook updating my preprocessor macros?

时光毁灭记忆、已成空白 提交于 2019-11-29 14:38:12
问题 I've been going round and round for a couple days now trying to figure out why my post_install hook isn't producing the output I'm expecting. Here's my Podfile: source 'https://github.com/CocoaPods/Specs.git' target "SCCommon" do platform :ios, "6.0" pod 'AFNetworking', '~> 1.2.1' pod 'Mantle', '~> 1.3' pod 'PubNub', '3.5.5' end target "SCCommon-TestHarness" do platform :ios, "6.0" # inhibit_all_warnings! pod 'SCCommon', :path => '../SCCommon.podspec' end target "SCCommon-UnitTests" do

Undefined symbols for architecture armv7 for Cocoapods libraries

a 夏天 提交于 2019-11-28 09:38:17
I stumbled upon a problem on a project that I need to work on. The project use Cocoapods for managing its libraries. I run pod install as usual to get started but xcode give me errors. I got Undefined symbols for architecture armv7 as you can see in the image below: All this symbols are the libraries that I use with my project. Eg. AFNetworking, RNBlurModalView. I tried to remove all the Cocoapods related file from the project and running pod install again, but it still doesn't solved the problem. What I have done so far: Clean the project and build again. Removing Cocoapods related files and