Skip to content

Instantly share code, notes, and snippets.

View ryanmeisters's full-sized avatar

Ryan Meisters ryanmeisters

View GitHub Profile
@ryanmeisters
ryanmeisters / gist:972cd61933ab1a07b804f197bc98a5fc
Last active March 10, 2025 21:31
Fastlane lane to add empty TargetAttributes to pbxproj.
# Adds empty TargetAttributes to pbxproj
lane :fix_target_attributes do |opts|
require 'xcodeproj'
xcodeproj_path = opts[:xcodeproj] || File.join(File.dirname(__FILE__), '..', XCODEPROJ_FILE)
UI.important("Fixing TargetAttributes in #{xcodeproj_path}")
project = Xcodeproj::Project.open(xcodeproj_path)
root_object = project.root_object