You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest you to add how to build different schemes using the same Pods, protecting to import many times the same Framework and both targets.
I'm new in Swift 3 and I started on project that use two targets, one for Dev, but not specified into PodFile. This Dev target should be run a SH file using rsync to protect against multiple targets copying the same framework dependencies at the time.
Stack
CocoaPods : 1.5.3
Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin17]
RubyGems : 2.5.2.3
Host : Mac OS X 10.13.6 (17G65)
Xcode : 8.3 (8E162)
Git : git version 2.18.0
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ c90001fac54381e04d0cdcb8a50fe65792ccbbf8
# Uncomment this line to define a global platform for your projectplatform:ios,'9.3'# Uncomment this line if you're using Swiftuse_frameworks!target'my-Project'dopod'Alamofire','~> 4.0'pod'MBProgressHUD'pod'PromiseKit','~> 4.0'pod'MBAutoGrowingTextView','~> 0.1.0'pod'PusherSwift','~> 3.0'pod'PopupDialog','~> 0.4'pod'SwiftMessages','3.5.1'pod'Bugsnag'pod'AutoCompleteTextField'pod'Fabric'pod'Crashlytics'target'my-ProjectTests'doinherit!:search_pathsendendpost_installdo |installer|
installer.pods_project.targets.eachdo |target|
target.build_configurations.eachdo |config|
config.build_settings['SWIFT_VERSION']='3.0'endendend
The problem is this DEV target don't have any import to Pods framework, so the Framework Search Paths pointing to another path.
See the screenshot below:
And then there's no posible to import the Framework.
I suggest you to add how to build different schemes using the same Pods, protecting to import many times the same Framework and both targets.
I'm new in
Swift 3
and I started on project that use two targets, one for Dev, but not specified intoPodFile
. This Dev target should be run a SH file usingrsync
to protect against multiple targets copying the same framework dependencies at the time.Stack
Installation Source
Plugins
Podfile
The problem is this DEV target don't have any import to Pods framework, so the
Framework Search Paths
pointing to another path.See the screenshot below:
And then there's no posible to import the Framework.
References:
https://forums.swift.org/t/how-to-use-the-same-pods-to-two-targets/14858
https://stackoverflow.com/questions/51615588/run-script-from-build-phrase-not-run-in-xcode-8-3
https://medium.com/@trionkidnapper/disabling-crashlytics-crash-reporting-fabric-on-debug-builds-aee6fdc34a57
The text was updated successfully, but these errors were encountered: