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'm having an issue setting the SDKROOT (BaseSDK) in the top level Pods Project configuration.
I've tried using a post_install script and this seems to work for the SDKROOT of each of the targets but not the project level setting.
In Xcode, the Base SDK is listed as No SDK (Latest OS X) but I'm build for iOS and this causes the build to fail with this warning:
Pods was rejected as an implicit dependency for 'libPods.a' because its architectures
'arm64' didn't contain all required architectures 'armv7 arm64'
which leads to this error:
ld: library not found for -lPods-CocoaLumberjack
Here is the podfile that I'm using:
platform :ios, '8.3'
pod 'CocoaLumberjack', '~> 1.8'
pod 'TRSDialScrollView', '>= 1.0'
# Only add Kiwi to Unit Test projects
target :UnderPressureTests, :exclusive => true do
pod 'Specta', '~> 0.5'
pod 'Expecta', '~> 0.4'
pod 'OCMock', '~> 3.1.2'
end
post_install do |installer|
installer.project.targets.each do |target|
p target.name
target.build_configurations.each do |config|
config.build_settings['SDKROOT'] = 'iphoneos'
end
end
end
I've compared the Pods/Pods.xcodeproj/project.pbxproj before and after the change and it looks like SDKROOT is not present for the Project target listed in the project.pbxproj file before I manually change it in Xcode.
Any ideas?
The text was updated successfully, but these errors were encountered:
So this looks like I'm trying to modify the wrong build_configurations in the post_install.
Still not sure why the Base SDK is not being set by default.
kylef
added
the
t3:discussion
These are issues that can be non-issues, and encompass best practices, or plans for the future.
label
May 7, 2015
The best way to edit Pods.xcodeproj is using the Podfile post-install hook.
@kevinkirkup you never shared a project that exhibits this issue, and given I've never encountered it myself, I'm going to have to close the issue for now. If it persists, however, I'll re-open.
I'm having an issue setting the SDKROOT (BaseSDK) in the top level Pods Project configuration.
I've tried using a post_install script and this seems to work for the SDKROOT of each of the targets but not the project level setting.
In Xcode, the Base SDK is listed as No SDK (Latest OS X) but I'm build for iOS and this causes the build to fail with this warning:
which leads to this error:
Here is the podfile that I'm using:
I've compared the
Pods/Pods.xcodeproj/project.pbxproj
before and after the change and it looks like SDKROOT is not present for the Project target listed in the project.pbxproj file before I manually change it in Xcode.Any ideas?
The text was updated successfully, but these errors were encountered: