Adding Framework in App Modules in iOS SDK
I am working on a project where I have added Firebase, Crashlytics etc using POD.
Now there is a requirement to create modules for each feature available in the app, so I created Modules for each Feature (Say Profile, Payment, Linking etc) & its working fine with main container app. Now My App looks like as below
Now I want to a use Framework(say Firebase) added Via POD in my module(Say Profile) but when I tried to import in a module I am getting
No such module 'Firebase'
Please suggest me how can add Framework added Via POD in any module.
Please also let me know If I have explained my question.
Below is my POD file
platform :ios, '8.0'
use_frameworks!
def mainPodPackage
pod 'Mapbox-iOS-SDK'
pod 'ZendeskSDK'
pod 'OneSignal'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'FacebookSDK'
end
target 'Production' do
mainPodPackage
end
target 'PreProd' do
mainPodPackage
end
target 'Dev' do
mainPodPackage
end
ios objective-c swift xcode
add a comment |
I am working on a project where I have added Firebase, Crashlytics etc using POD.
Now there is a requirement to create modules for each feature available in the app, so I created Modules for each Feature (Say Profile, Payment, Linking etc) & its working fine with main container app. Now My App looks like as below
Now I want to a use Framework(say Firebase) added Via POD in my module(Say Profile) but when I tried to import in a module I am getting
No such module 'Firebase'
Please suggest me how can add Framework added Via POD in any module.
Please also let me know If I have explained my question.
Below is my POD file
platform :ios, '8.0'
use_frameworks!
def mainPodPackage
pod 'Mapbox-iOS-SDK'
pod 'ZendeskSDK'
pod 'OneSignal'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'FacebookSDK'
end
target 'Production' do
mainPodPackage
end
target 'PreProd' do
mainPodPackage
end
target 'Dev' do
mainPodPackage
end
ios objective-c swift xcode
Show your podfile please, you might need to install pod for those target you wanted to add also
– Tj3n
Jan 2 at 9:05
I tried to install POD for added target but getting error 'Unable to find a target named '. Moreover I have added modules not a new target.
– Gagan_iOS
Jan 2 at 9:12
@Tj3n I have added code for POD file. Please have look
– Gagan_iOS
Jan 2 at 9:54
add a comment |
I am working on a project where I have added Firebase, Crashlytics etc using POD.
Now there is a requirement to create modules for each feature available in the app, so I created Modules for each Feature (Say Profile, Payment, Linking etc) & its working fine with main container app. Now My App looks like as below
Now I want to a use Framework(say Firebase) added Via POD in my module(Say Profile) but when I tried to import in a module I am getting
No such module 'Firebase'
Please suggest me how can add Framework added Via POD in any module.
Please also let me know If I have explained my question.
Below is my POD file
platform :ios, '8.0'
use_frameworks!
def mainPodPackage
pod 'Mapbox-iOS-SDK'
pod 'ZendeskSDK'
pod 'OneSignal'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'FacebookSDK'
end
target 'Production' do
mainPodPackage
end
target 'PreProd' do
mainPodPackage
end
target 'Dev' do
mainPodPackage
end
ios objective-c swift xcode
I am working on a project where I have added Firebase, Crashlytics etc using POD.
Now there is a requirement to create modules for each feature available in the app, so I created Modules for each Feature (Say Profile, Payment, Linking etc) & its working fine with main container app. Now My App looks like as below
Now I want to a use Framework(say Firebase) added Via POD in my module(Say Profile) but when I tried to import in a module I am getting
No such module 'Firebase'
Please suggest me how can add Framework added Via POD in any module.
Please also let me know If I have explained my question.
Below is my POD file
platform :ios, '8.0'
use_frameworks!
def mainPodPackage
pod 'Mapbox-iOS-SDK'
pod 'ZendeskSDK'
pod 'OneSignal'
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'FacebookSDK'
end
target 'Production' do
mainPodPackage
end
target 'PreProd' do
mainPodPackage
end
target 'Dev' do
mainPodPackage
end
ios objective-c swift xcode
ios objective-c swift xcode
edited Jan 2 at 9:53
Gagan_iOS
asked Jan 2 at 9:03
Gagan_iOSGagan_iOS
2,51721734
2,51721734
Show your podfile please, you might need to install pod for those target you wanted to add also
– Tj3n
Jan 2 at 9:05
I tried to install POD for added target but getting error 'Unable to find a target named '. Moreover I have added modules not a new target.
– Gagan_iOS
Jan 2 at 9:12
@Tj3n I have added code for POD file. Please have look
– Gagan_iOS
Jan 2 at 9:54
add a comment |
Show your podfile please, you might need to install pod for those target you wanted to add also
– Tj3n
Jan 2 at 9:05
I tried to install POD for added target but getting error 'Unable to find a target named '. Moreover I have added modules not a new target.
– Gagan_iOS
Jan 2 at 9:12
@Tj3n I have added code for POD file. Please have look
– Gagan_iOS
Jan 2 at 9:54
Show your podfile please, you might need to install pod for those target you wanted to add also
– Tj3n
Jan 2 at 9:05
Show your podfile please, you might need to install pod for those target you wanted to add also
– Tj3n
Jan 2 at 9:05
I tried to install POD for added target but getting error 'Unable to find a target named '. Moreover I have added modules not a new target.
– Gagan_iOS
Jan 2 at 9:12
I tried to install POD for added target but getting error 'Unable to find a target named '. Moreover I have added modules not a new target.
– Gagan_iOS
Jan 2 at 9:12
@Tj3n I have added code for POD file. Please have look
– Gagan_iOS
Jan 2 at 9:54
@Tj3n I have added code for POD file. Please have look
– Gagan_iOS
Jan 2 at 9:54
add a comment |
1 Answer
1
active
oldest
votes
This is how you can install pod for multiple project workspace, edit your podfile as so, test target should have same project
as it's target:
use_frameworks!
workspace 'Workspace_name'
project 'PjA.xcodeproj'
project 'path_to_PjB/PjB.xcodeproj'
target 'PjA' do
project 'PjA.xcodeproj'
...
end
target 'PjB' do
project 'path_to_PjB/PjB.xcodeproj'
...
end
Thanks, I have added POS file in my question.
– Gagan_iOS
Jan 2 at 9:55
@Gagan_iOS Update your podfile format like this then it should work, I cant tell where you put the podfile and the projects so you have to update yourself
– Tj3n
Jan 2 at 10:01
thanks for valuable input. I have edited my pod file and now I am able to debug. Saved my Day :) Thanks a lot
– Gagan_iOS
Jan 2 at 10:14
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54003619%2fadding-framework-in-app-modules-in-ios-sdk%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is how you can install pod for multiple project workspace, edit your podfile as so, test target should have same project
as it's target:
use_frameworks!
workspace 'Workspace_name'
project 'PjA.xcodeproj'
project 'path_to_PjB/PjB.xcodeproj'
target 'PjA' do
project 'PjA.xcodeproj'
...
end
target 'PjB' do
project 'path_to_PjB/PjB.xcodeproj'
...
end
Thanks, I have added POS file in my question.
– Gagan_iOS
Jan 2 at 9:55
@Gagan_iOS Update your podfile format like this then it should work, I cant tell where you put the podfile and the projects so you have to update yourself
– Tj3n
Jan 2 at 10:01
thanks for valuable input. I have edited my pod file and now I am able to debug. Saved my Day :) Thanks a lot
– Gagan_iOS
Jan 2 at 10:14
add a comment |
This is how you can install pod for multiple project workspace, edit your podfile as so, test target should have same project
as it's target:
use_frameworks!
workspace 'Workspace_name'
project 'PjA.xcodeproj'
project 'path_to_PjB/PjB.xcodeproj'
target 'PjA' do
project 'PjA.xcodeproj'
...
end
target 'PjB' do
project 'path_to_PjB/PjB.xcodeproj'
...
end
Thanks, I have added POS file in my question.
– Gagan_iOS
Jan 2 at 9:55
@Gagan_iOS Update your podfile format like this then it should work, I cant tell where you put the podfile and the projects so you have to update yourself
– Tj3n
Jan 2 at 10:01
thanks for valuable input. I have edited my pod file and now I am able to debug. Saved my Day :) Thanks a lot
– Gagan_iOS
Jan 2 at 10:14
add a comment |
This is how you can install pod for multiple project workspace, edit your podfile as so, test target should have same project
as it's target:
use_frameworks!
workspace 'Workspace_name'
project 'PjA.xcodeproj'
project 'path_to_PjB/PjB.xcodeproj'
target 'PjA' do
project 'PjA.xcodeproj'
...
end
target 'PjB' do
project 'path_to_PjB/PjB.xcodeproj'
...
end
This is how you can install pod for multiple project workspace, edit your podfile as so, test target should have same project
as it's target:
use_frameworks!
workspace 'Workspace_name'
project 'PjA.xcodeproj'
project 'path_to_PjB/PjB.xcodeproj'
target 'PjA' do
project 'PjA.xcodeproj'
...
end
target 'PjB' do
project 'path_to_PjB/PjB.xcodeproj'
...
end
answered Jan 2 at 9:45
Tj3nTj3n
7,11611328
7,11611328
Thanks, I have added POS file in my question.
– Gagan_iOS
Jan 2 at 9:55
@Gagan_iOS Update your podfile format like this then it should work, I cant tell where you put the podfile and the projects so you have to update yourself
– Tj3n
Jan 2 at 10:01
thanks for valuable input. I have edited my pod file and now I am able to debug. Saved my Day :) Thanks a lot
– Gagan_iOS
Jan 2 at 10:14
add a comment |
Thanks, I have added POS file in my question.
– Gagan_iOS
Jan 2 at 9:55
@Gagan_iOS Update your podfile format like this then it should work, I cant tell where you put the podfile and the projects so you have to update yourself
– Tj3n
Jan 2 at 10:01
thanks for valuable input. I have edited my pod file and now I am able to debug. Saved my Day :) Thanks a lot
– Gagan_iOS
Jan 2 at 10:14
Thanks, I have added POS file in my question.
– Gagan_iOS
Jan 2 at 9:55
Thanks, I have added POS file in my question.
– Gagan_iOS
Jan 2 at 9:55
@Gagan_iOS Update your podfile format like this then it should work, I cant tell where you put the podfile and the projects so you have to update yourself
– Tj3n
Jan 2 at 10:01
@Gagan_iOS Update your podfile format like this then it should work, I cant tell where you put the podfile and the projects so you have to update yourself
– Tj3n
Jan 2 at 10:01
thanks for valuable input. I have edited my pod file and now I am able to debug. Saved my Day :) Thanks a lot
– Gagan_iOS
Jan 2 at 10:14
thanks for valuable input. I have edited my pod file and now I am able to debug. Saved my Day :) Thanks a lot
– Gagan_iOS
Jan 2 at 10:14
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54003619%2fadding-framework-in-app-modules-in-ios-sdk%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Show your podfile please, you might need to install pod for those target you wanted to add also
– Tj3n
Jan 2 at 9:05
I tried to install POD for added target but getting error 'Unable to find a target named '. Moreover I have added modules not a new target.
– Gagan_iOS
Jan 2 at 9:12
@Tj3n I have added code for POD file. Please have look
– Gagan_iOS
Jan 2 at 9:54