cocoapods-amimono
cocoapods-amimono copied to clipboard
Support multi-project and framework targets on Podfile
I've added plugin to CP install phase and executed pod install, the plugin did not produce any errors. However, when I build xcodeproj i see:
ld: -filelist file '/Users/../Library/Developer/Xcode/DerivedData/Transfer-bbluillnwgtwwagbhmwcczjqlaow/Build/Intermediates/Pods.build/Debug-iphonesimulator-HttpClientKit_iOS-x86_64.objects.filelist' could not be opened, errno=2 (No such file or directory)
`
HttpClientKit is a sub-library included in the project in the workspace (our libraries layout is a bit esoteric).
Here is the gist with some details stripped: https://gist.github.com/garnett/778dd186739be5b7bbe0368661563092 not sure if it helps though.
Thanks for reporting this and sharing your Podfile! I managed to reproduce the issue here.
Looks like you're integrating CocoaPods in a multiple project setup using framework targets, at the moment amimono doesn't support something like this.
I'll try to add support for this next week.
Hey, sorry for the late reply. I think I'm close to get a fix for this, I'd like to confirm something.
I'm not sure if I got the project setup correctly, I got this: Ruenzuo/cocoapods_integrate_framework_targets which works but I still get a warning from CocoaPods:
[!] The Podfile contains framework targets, for which the Podfile does not contain host targets (targets which embed the framework).
If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).
So I'm not sure if this is supported by CocoaPods or if I'm doing it right. I posted a question on SO but no answer yet, I'm trying to contact someone from the CocoaPods Core team.
As far as I can tell, your Podfile is similar: you're also duplicating the Pods in both application and framework target, so my question would be, do you also get this warning or is there something I didn't get right?
@Ruenzuo I can confirm that I'm getting this warning too. It "just works for us". I assume it has to do with modern abstract_target we are not using but in practice we haven't had any issues with the setup apart from the nasty warning.
same issue here. Our workspace contains several projects, when i use amonono, error occured
ld: -filelist file '/Users/xxx/Library/Developer/Xcode/DerivedData/xxx-boncyuotopenzxfbmwaqsdqeqviq/Build/Intermediates/Pods.build/Debug-iphoneos-XXX-arm64.objects.filelist' could not be opened, errno=2 (No such file or directory)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any solution?
same issue I am facing having multiple projects in same workspace. Please Help!