Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit 53431a1

Browse files
committed
Use application target as dummy target
Because newer versions of CocoaPods will no longer allow just a framework target in the Podfile.
1 parent ceca6cd commit 53431a1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/cocoapods-playgrounds/workspace.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,16 @@ def generate_project
147147
project_path = "#{names.first}.xcodeproj"
148148
project = Xcodeproj::Project.new(project_path)
149149

150-
target = project.new_target(:framework,
150+
target = project.new_target(:application,
151151
target_name,
152152
@platform,
153153
@deployment_target)
154154
target.build_configurations.each do |config|
155+
config.build_settings['ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME'] = 'LaunchImage'
156+
config.build_settings['CODE_SIGN_IDENTITY[sdk=iphoneos*]'] = ''
157+
config.build_settings['CODESIGNING_REQUIRED'] = 'NO'
155158
config.build_settings['DEFINES_MODULE'] = 'NO'
159+
config.build_settings['EMBEDDED_CONTENT_CONTAINS_SWIFT'] = 'NO'
156160
end
157161

158162
# TODO: Should be at the root of the project

0 commit comments

Comments
 (0)