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
1 answer

Ruby Xcodeproj: Add file to non-group folder

I am trying to add the Google-Service.json (for Google Social Login) to my Xcode Project. As the project is build in a CI machine I cannot do it through Xcode. I used Cocoapod's Xcodeproj package in order to help me add the json to my Xcode proj.…
1
vote
1 answer

How to add folder reference to PBXGroup?

I want to add 'folder reference' to PBXGroup using ruby. Can't find a solution in github.com/CocoaPods/Xcodeproj file_path = File.join(to_folder, folder_to_fetch) file_reference = destination_group.new_file(file_path, :group) …
1
vote
0 answers

Script to remove file from a single target

We're building an app that has different versions for different countries. As part of a localisation effort I'm aiming to write a script that swaps certain asset files with another based on the language parameter. I've written a python script for…
Aatish Molasi
  • 2,138
  • 3
  • 20
  • 43
1
vote
2 answers

How to get target's version by Ruby (or Xcodeproj)

How to get target's version(The version of you APP) in Ruby or Xcodeproj? I have tried sdk_version in AbstractTarget with Xcodeproj, But it returns nil. If Xcodeproj doesn't support it. How to get the version by Ruby?
Yanni
  • 580
  • 2
  • 6
  • 21
1
vote
1 answer

Add nested assets directory to PBXResourcesBuildPhase by folder reference

I use Xcodeproj gem to add some files in post_install hook. How can I add nested folder of assets into PBXResourcesBuildPhase? This is how it looks when I add folder by drag & drop it into Xcode and selecting Create folder references option: Project…
Neru
  • 679
  • 6
  • 19
1
vote
1 answer

How to generate Xcode project using SPM with extra build flags?

I am creating a package that depends on OpenSSL on macOS. To use SPM to build the package, I need to pass it some build/linker flags: swift build -Xlinker -L/usr/local/opt/openssl/lib -Xcc -I/usr/local/opt/openssl/include The problem is that when I…
channel
  • 216
  • 2
  • 9
1
vote
1 answer

Xcodeproj create Today Extension (widget) scheme

Here is the code to create a target scheme. scheme = Xcodeproj::XCScheme.new scheme.add_build_target(target) scheme.set_launch_target(target) scheme.save_as(xcode_proj_dir, name) How to create a scheme for Today Extension? There are some…
ChikabuZ
  • 10,031
  • 5
  • 63
  • 86
1
vote
0 answers

xcode workspace multi Project "no such module" for a pods

Hi here's basically my Podfile configuration platform :ios, '11.0' target 'Project1' do use_frameworks! workspace 'MyWorkspace' project 'Project1.xcodeproj' pod 'RxSwift', '~> 4.0' pod 'Project2', :path => 'Project2' pod 'Project3',…
1
vote
1 answer

Is `XCBuildConfiguration#base_configuration_reference` supported in xcodeproj?

When opening a project using Xcodeproj::Project.open (xcodeproj 1.5.1 gem), if the project has baseConfigurationReferences defined for build configurations, the XCBuildConfiguration#base_configuration_reference is nil. For example, when opening a…
Jimmy Dee
  • 1,070
  • 1
  • 11
  • 17
1
vote
1 answer

Parsing of project.pbxproj file

Is there any frameworks for parsing of project.pbxproj contained in .xcodeproj file?
Artem Novichkov
  • 2,356
  • 2
  • 24
  • 34
1
vote
0 answers

Xcodeproj ruby gem Project.groups not finding all groups

Am using Xcodeproj to iterate through all the groups added in my project. But it seems to only find the groups which are added via Xcode i.e. groups added by right clicking and selecting "New Group" option from menu and fails to find the groups…
user1398615
  • 289
  • 1
  • 7
1
vote
1 answer

Create file reference to image in Images.xcassets using xcodeproj

I'm writing a script with Xcodeproj and I would like to create references to image files inside .xcassets. Finder treats .xcassets & .imageset as Folders but I don't want to create a group in xcode for each of those folders. I'm able to create a…
Xeaza
  • 1,410
  • 1
  • 17
  • 21
1
vote
2 answers

React Native: Bundle Identifier does not exist

I have a project in React Native that has two different build schemes and uses cocoapods. To compile it I run: react-native run-ios --scheme="RNProject-(SCHEME_NAME)" The resulting apps are for…
Peter G.
  • 7,816
  • 20
  • 80
  • 154
1
vote
2 answers

How to continue developing with a React Native Project with xCode?

I have complete my first little application with React Native. Now I want to change some styles or the splash screen on their native platform, where is the generated code for these platforms? I checked the ios and android folder, but I just can't…
Haven
  • 7,808
  • 5
  • 25
  • 37
1
vote
1 answer

Add a framework to "link to binary with libraries" using xcodeproj

I'm currently struggling with Xcodeproj to be able to add some libraries and change a few details in my Xcode project. I'm pretty new to Ruby and usually only use Xcode to compile my projects so here's where I am currently, trying to add…
marist
  • 71
  • 5