None of the solutions works for me. I have Xcode 9.3 with Swift 4.1, newest release of Cocoapods. Here are my error in the playground. This is totally frustrating…
Playground execution failed:
On Xcode 9.2, Swift 4.1 toolchain running, I cleared the error by adding this inside Podfile, then pod install again
# Workaround for Cocoapods issue #7606
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
end
@vinamelody Thanks! Finally working! (nuke did not work, did not try the submodule workaround)
Being on xcode 9.3, pod 1.5.0 (sooo glad I don’t need to downgrade cocoa pods, breaking other projects), seeing swift 4.1.2 being used with the source bundled in v2.0 of the book did the trick.
As there’s already a post_install hook and pod install complained on this. I added these lines just below the existing line post_install do |installer|:
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
Thanks for that! (also works for Realm BTW) - too bad v1.5 causes that much trouble …
The script looks like this then (just to make sure - this one works):
platform :ios, ‘11.0’
target ‘RxSwiftPlayground’ do
use_frameworks!
Pods for RxSwiftPlayground
pod ‘RxSwift’, ‘~> 4.0’
end
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete(‘CODE_SIGNING_ALLOWED’)
config.build_settings.delete(‘CODE_SIGNING_REQUIRED’)
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings[‘CONFIGURATION_BUILD_DIR’] = ‘$PODS_CONFIGURATION_BUILD_DIR’
end
end
end
Even though CocoaPods 1.3.1 and nuking and repaving worked for me on the first playground for Chapter 2, it was a real hassle to do that for all the following playgrounds from the book.