mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-02 14:10:40 +00:00
📝 Change the Embed Instabug framework name.
This commit is contained in:
parent
dacff62036
commit
9500e0862e
2
link.rb
2
link.rb
@ -29,7 +29,7 @@ target = project.targets.find { |target| target.to_s == target_name }
|
||||
frameworks_build_phase = target.build_phases.find { |build_phase| build_phase.to_s == 'FrameworksBuildPhase' }
|
||||
|
||||
# Add new "Embed Frameworks" build phase to target
|
||||
embed_frameworks_build_phase = target.build_phases.find { |build_phase| build_phase.to_s == 'Embed Frameworks'}
|
||||
embed_frameworks_build_phase = target.build_phases.find { |build_phase| build_phase.to_s == 'Embed Instabug Framework'}
|
||||
Kernel.exit(0) if embed_frameworks_build_phase
|
||||
embed_frameworks_build_phase = project.new(Xcodeproj::Project::Object::PBXCopyFilesBuildPhase)
|
||||
embed_frameworks_build_phase.name = 'Embed Instabug Framework'
|
||||
|
@ -24,7 +24,7 @@ target = project.targets.find { |target| target.to_s == target_name }
|
||||
frameworks_build_phase = target.build_phases.find { |build_phase| build_phase.to_s == 'FrameworksBuildPhase' }
|
||||
|
||||
# Remove "Embed Frameworks" build phase to target
|
||||
embed_frameworks_build_phase = target.build_phases.find { |build_phase| build_phase.to_s == 'Embed Frameworks'}
|
||||
embed_frameworks_build_phase = target.build_phases.find { |build_phase| build_phase.to_s == 'Embed Instabug Framework'}
|
||||
Kernel.exit(0) unless embed_frameworks_build_phase
|
||||
target.build_phases.delete(embed_frameworks_build_phase)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user