Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Xcodeproj lets you create and modify Xcode projects from Ruby.
Script boring management tasks or build Xcode-friendly libraries. Also includes
support for Xcode workspaces (.xcworkspace
), configuration files (.xcconfig
) and
Xcode Scheme files (.xcscheme
).
It is used in CocoaPods to create a collection of supplemental libraries or frameworks, for all platforms Xcode supports.
The API reference can be found here.
Xcodeproj itself installs through RubyGems, the Ruby package manager. Install it by performing the following command:
$ [sudo] gem install xcodeproj
To begin editing an xcodeproj file start by opening it as an Xcodeproj with:
require 'xcodeproj'
project_path = '/your_path/your_project.xcodeproj'
project = Xcodeproj::Project.open(project_path)
Look through all targets
project.targets.each do |target|
puts target.name
end
Get all source files for a target
target = project.targets.first
files = target.source_build_phase.files.to_a.map do |pbx_build_file|
pbx_build_file.file_ref.real_path.to_s
end.select do |path|
path.end_with?(".m", ".mm", ".swift")
end.select do |path|
File.exists?(path)
end
Set a specific build configuration to all targets
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['MY_CUSTOM_FLAG'] ||= 'TRUE'
end
end
project.save
Installing the Xcodeproj gem will also install a command-line tool xcodeproj
which you can
use to generate project diffs, target diffs, output all configurations and show a YAML representation.
For more information consult xcodeproj --help
.
All Xcodeproj development happens on GitHub. Contributing patches is really easy and gratifying.
Follow @CocoaPods to get up to date information about what's going on in the CocoaPods world.
These works are available under the MIT license. See the LICENSE file for more info.
FAQs
Unknown package
We found that xcodeproj demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.