Open jugutier opened 6 years ago
Could be related to https://github.com/CocoaPods/Rome/pull/63, you can try disabling dsym generation or using the plugin from master with the fix.
Hi @Ruenzuo Thanks for looking into this.
I had noticed that issue and got something working using a sample app.
Overall I guess the big question was if I could run rome with just a podfile even without an app that holds a real target by the name caesar
(in this case) The code that used to have an error before #63 seemed to expect a real target which made me think this was not possible.
After a second attempt today I was able to build the framework with just a podfile that looks like this:
platform :ios, '8.0'
plugin 'cocoapods-rome', { :pre_compile => Proc.new { |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
end
installer.pods_project.save
},
dsym: false,
configuration: 'Release'
}
target 'caesar' do
pod 'Alamofire'
end
Is this something that would be worth adding to the samples in the readme?
Would dsym work once the new release is out?
Could we have something that says in the readme that a real xcodeproject or target isn't a requirement to get the frameworks to build?
Thanks!
@jugutier I tried to make this possible in https://github.com/CocoaPods/CocoaPods/pull/7588 but as you can see in the reply the problem is related to CocoaPods disabling integration. Your approach makes a lot of sense, dSYM should work in that case (you can try it now by using master in your Gemfile).
Feel free to send a PR adding this information to the README, I think it would be useful for some. The first time I tried Rome I also tried it without an Xcode project.
agreed @Ruenzuo, readme enhancements now added in #69
also it seems like this issue would be resolved with the latest in master, but I will close this issue when a new version of rome is released.
Report
pod install
on an empty folder with just this PodfileTo get an output folder with the compiled
Alamofire
frameworkGot an error.
Command
Stack
Plugins
Podfile
Error