Targets within an object in a subpixel
I am trying to install SKD Google Mobile Ads in my Xcode project. I installed Cocoapods and then initialized the Podfile to my project:
# Uncomment the next line to define a global platform for your project
platform :ios, '10.2'
target 'Cubical' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Cubical
target 'CubicalTests' do
inherit! :search_paths
# Pods for testing
end
target 'CubicalUITests' do
inherit! :search_paths
# Pods for testing
end
end
However, I don't understand why my main project (Cubical) has goals. I've never used CubicalTests or CubicalUITests since I really don't need to test my UI or any piece of code. I was thinking about deleting these two folders.
My questions:
1) Is there any downside to removing the Tests and UITests folders from my Xcode project? And if I do, can I just remove these two targets from my subfile?
2) Let's say I was going to keep these two goals. Should I add a package for all three purposes? Or two nested targets inherit any objects of the target "Cubical"
3) Do I need to add Google Mobile Ads SDK to Linked Frameworks? Or is it already done by Cocoapods?
My final module would look like this:
# Uncomment the next line to define a global platform for your project
platform :ios, '10.2'
target 'Cubical' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Google-Mobile-Ads-SDK'
# Pods for Cubical
target 'CubicalTests' do
inherit! :search_paths
# Pods for testing
end
target 'CubicalUITests' do
inherit! :search_paths
# Pods for testing
end
end
source to share
Question 1:
When deleting Tests
, CubicalUITests
targets and folders are no problems, if you do not need to carry out such tests.
Question 2 :
You can share containers with multiple targets as shown below,
def shared
pod 'Google-Mobile-Ads-SDK'
end
target 'Target1' do
shared
end
target 'Terget2' do
shared
end
Global containers for multiple purposes
#Global Pod for all targets
pod 'Google-Mobile-Ads-SDK'
target 'target1' do
pod 'Fabric' #Pod for nested Target. i.e., Google-Mobile-Ads-SDK + Fabric
end
target 'target2' do
pod 'RadioButton'#Pod for nested Target. i.e., Google-Mobile-Ads-SDK + RadioButton
end
Supports for nested purposes:
#Global Pod for all targets
pod 'Google-Mobile-Ads-SDK'
target 'target1' do
pod 'RadioButton' #Available for target1 and target2
target 'target2 copy' do
pod 'Fabric' #Available for target2 only
end
end
Question 3:
Linked frames are automatically done with cocoapods. See here you need to bind the framework using frameworks without cocoapods.
source to share