Questions tagged [xcodeproj]

Xcodeproj is a Ruby gem from the makers of CocoaPods that allows scripted access to Xcode's project file.

The Xcodeproj project is a Ruby gem from the makers of CocoaPods that allows scripted access to Xcode's project file.

Installation is as simple as:

gem install xcodeproj

Docs: http://www.rubydoc.info/gems/xcodeproj/

64 questions
1
vote
2 answers

Modify XCScheme and write it back to disk in post_install script

I'm writing a post_install script in my Podfile in order to enable gathering of code coverage reports from my framework when I run the unit tests in the example project. Here's what I've got: post_install do |installer| pods_project =…
Zev Eisenberg
  • 8,080
  • 5
  • 38
  • 82
0
votes
0 answers

How to detect `Active Scheme` of an Xcode project/workspace from command line

There're always more than one (xc)schemes in a single Xcode project/workspace. When you open a project/workspace with Xcode, Xcode will decide an active scheme as the default scheme to be build/run. And if you select another scheme, Xcode will…
Saafo
  • 459
  • 6
  • 6
0
votes
0 answers

Add Swift Package (SPM) from CLI with fastlane, ruby and Xcodeproj

There seems to be a lot of questions and answers on how to refresh Swift Package Manager from CLI, but none on how to add or remove a dependency from CLI. I need this as I have a lot of combinations of external dependencies that need to be handled…
Sunkas
  • 9,542
  • 6
  • 62
  • 102
0
votes
0 answers

Xcodeproj - add base_configuration-reference

I’m a bit new to xcodeproj and ruby as a whole. I have a custom .xcconfig file. It’s in my repo and it comes externally. I’m trying to build a script which will create a configuration using it. So far, I have #!/usr/bin/ruby require…
Tiny Tim
  • 207
  • 1
  • 6
0
votes
0 answers

correct configuration for static libraries in Xcodegen project file?

I am using the following project.yml: name: MyApp targets: My-App: type: application platform: iOS deploymentTarget: "12.1" sources: - My App Source Folder dependencies: - framework: NormalFramework.framework …
Daniel Creagh
  • 502
  • 4
  • 11
0
votes
0 answers

2 versions of xcodeproj exist and newer version is not being used by pod install

pod install throws error on Xcode 14/MacOS 12.5/M1/cocoapods 1.11.3: RuntimeError - [Xcodeproj] Unknown object version (56). /opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/xcodeproj-1.21.0/lib/xcodeproj/project.rb:228:in…
user938363
  • 9,990
  • 38
  • 137
  • 303
0
votes
1 answer

How to Add file .a to project by xcodegen swift

I want to add 5 file have extension .a to project. I click "+" button then choose 5 file .a add to project is success. But my project use xcodegen so I want to config file project.yml to auto add file .a when genarate new file xcodeproj. Help me…
0
votes
1 answer

Why can't I import Pod Unit Tests file into host application Unit Tests file

I have a project which depends on a cocoapod dependency, this dependency has a Unit Tests target that contains some mocking files I want to use in the tests of my host application. Example: @import testable MyPod_Unit_Tests class…
chuckSaldana
  • 1,187
  • 12
  • 28
0
votes
0 answers

How to install a pod in a custom react native library?

I'm trying to link a custom react native library which has a pod installed. When I install the pod in the custom library, xcworkspace is generated and I need to use the workspace there after, and I'm able to access the pods there. But, this custom…
0
votes
1 answer

Why is there a 'Pods' project separate from my regular project in Xcode?

Scenario: When I open the iOS folder for my project InTow in Xcode, I see two separate projects in the Navigator Area: InTow and Pods. As well, when I search recursively within the ios/ folder, there are only two .xcodeproj files: InTow.xcodeproj…
gkeenley
  • 6,088
  • 8
  • 54
  • 129
0
votes
1 answer

Project downloaded from github not runing in xcode 10

I had download a project from my git repo. In my project there are two .xcodeproj file, podfiles with some of objective c code. But is not running and giving error I had try to edit manage schemes and also try to install/update pods but pod…
0
votes
2 answers

Can Not Update Xcodeproj Gem

I am trying to update the xcodeproj gem to the latest version. Currently, I have version 1.5.6: $xcodeproj --version 1.5.6 $ which xcodeproj /Users/nicolasmiari/.rvm/gems/ruby-2.4.0/bin/xcodeproj I tried to update using: $ gem install…
Nicolas Miari
  • 16,006
  • 8
  • 81
  • 189
0
votes
0 answers

Project file changed many places

My project contains many files and third-party frameworks and so on. Working as a team, When I'm adding a single file to the project it's showing many changes in the project file, How can we set project file to show only my changes. It should not…
Damodar
  • 707
  • 2
  • 10
  • 23
0
votes
1 answer

Is there a way to autocreate schemes for a Xcode Project from command line

I'm tryging to configure a CI pipeline and run unit tests automatically, but I'm handling with no schemes for the current workspace. I know I can create them by using Xcode/ Manage Schemes etc... but since the nature it self of the automation in the…
YadirHB
  • 168
  • 14
0
votes
0 answers

Can cocoapods commands be run without touching the code dependencies?

I work on a team that is an iOS contractor for a larger company. We are helping the large company build a iOS app with Xcode and we use Cocoapods to manage our dependencies in the project. However, the large company has internal Cocoapods that are…