Having a react-native project, which won't build on target "Staging" since I've setup cocoapods and using xcworkspace
file since then (needed for firebase integration of react-native-firebase
). When trying to build for taget "staging", I'll get this error:
ld: library not found for -lPods-[app]
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It works on debug, and (well at least it doesn't throw an error) when I archive the project.
I've having a "staging" target because of code-push. Using react-native at version 0.48.4
and Xcode 9 (created it following this guide, but before using cocoapods)
My podfile:
platform :ios, '9.0'
target 'xx' do
#use_frameworks!
# Pods
pod 'Firebase/Core'
pod 'Firebase/Analytics'
pod 'Firebase/Database'
pod 'Firebase/Messaging'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
end
Tried with and without use_frameworks!
, cleaning project, deleted DerivedData, deintegrating and reintegrating pods.
What could cause this? (Please tell me if you need more information)
libPods-[projectName].a
with statusrequired
)$(inherited)
on all targets (in the project column). Can you tell me how I should set "Build Active Architecture Only" properly? I'm having columns: "Resolved" (not editable, says "YES" on debug, empty on Release/Staging), [Target], Config.file (not editable), [Project]. Tried it with same values as debug has (setting [Target] to YES), cleaned and rebuild, but still fails.