When I try to archive an app on Xcode, I receive many errors regarding the cocoa pods saying that "multiple commands produce...". I believe it is because the app has multiple build schemes using the same cocoapods. One app from the project was able to archive, but the other scheme that I created won't work.
Errors:
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GTMSessionFetcher.framework':
1) Target 'GTMSessionFetcher-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GTMSessionFetcher.framework'
2) Target 'GTMSessionFetcher-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GTMSessionFetcher.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/nanopb.framework':
1) Target 'nanopb-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/nanopb.framework'
2) Target 'nanopb-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/nanopb.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework':
1) Target 'Alamofire-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework'
2) Target 'Alamofire-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseInstallations.framework':
1) Target 'FirebaseInstallations-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseInstallations.framework'
2) Target 'FirebaseInstallations-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseInstallations.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CryptoSwift.framework':
1) Target 'CryptoSwift-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CryptoSwift.framework'
2) Target 'CryptoSwift-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CryptoSwift.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseCoreDiagnostics.framework':
1) Target 'FirebaseCoreDiagnostics-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseCoreDiagnostics.framework'
2) Target 'FirebaseCoreDiagnostics-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseCoreDiagnostics.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/DropDown.framework':
1) Target 'DropDown-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/DropDown.framework'
2) Target 'DropDown-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/DropDown.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseCore.framework':
1) Target 'FirebaseCore-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseCore.framework'
2) Target 'FirebaseCore-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseCore.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FBLPromises.framework':
1) Target 'PromisesObjC-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FBLPromises.framework'
2) Target 'PromisesObjC-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FBLPromises.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/openssl_grpc.framework':
1) Target 'BoringSSL-GRPC-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/openssl_grpc.framework'
2) Target 'BoringSSL-GRPC-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/openssl_grpc.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseABTesting.framework':
1) Target 'FirebaseABTesting-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseABTesting.framework'
2) Target 'FirebaseABTesting-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseABTesting.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseFirestore.framework':
1) Target 'FirebaseFirestore-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseFirestore.framework'
2) Target 'FirebaseFirestore-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FirebaseFirestore.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/leveldb.framework':
1) Target 'leveldb-library-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/leveldb.framework'
2) Target 'leveldb-library-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/leveldb.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/grpcpp.framework':
1) Target 'gRPC-C++-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/grpcpp.framework'
2) Target 'gRPC-C++-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/grpcpp.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SwiftSoup.framework':
1) Target 'SwiftSoup-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SwiftSoup.framework'
2) Target 'SwiftSoup-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/SwiftSoup.framework'
error: Multiple commands produce '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/JGProgressHUD.framework':
1) Target 'JGProgressHUD-iOS14.0' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/JGProgressHUD.framework'
2) Target 'JGProgressHUD-iOS14.2' has create directory command with output '/Users/ryanreid/Library/Developer/Xcode/DerivedData/gradeApp-hiztjiltybrjmzegfnwrcjdgwmii/Build/Intermediates.noindex/ArchiveIntermediates/Gaels Connect/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/JGProgressHUD.framework'
...
Podfile:
# Uncomment the next line to define a global platform for your project
# platform :ios, '13.0'
target 'gradeApp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for gradeApp
target 'gradeAppTests' do
inherit! :search_paths
# Pods for testing
end
target 'gradeAppUITests' do
# Pods for testing
end
pod 'JGProgressHUD'
pod 'NVActivityIndicatorView'
pod 'DropDown'
pod 'CryptoSwift'
pod 'SwiftSoup'
pod 'Alamofire'
pod 'AlamofireImage', '~> 4.1'
pod 'Firebase/Analytics'
pod 'Firebase/Crashlytics'
pod 'FirebaseFirestoreSwift'
pod 'Firebase/Core'
pod 'Firebase/Performance'
end
target 'Gaels Connect' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for Gaels Connect
pod 'JGProgressHUD'
pod 'NVActivityIndicatorView'
pod 'DropDown'
pod 'CryptoSwift'
pod 'SwiftSoup'
pod 'Alamofire'
pod 'AlamofireImage', '~> 4.1'
pod 'Firebase/Analytics'
pod 'Firebase/Crashlytics'
pod 'FirebaseFirestoreSwift'
pod 'Firebase/Core'
pod 'Firebase/Performance'
end
I also receive warnings as the build begins to archive for most/all cocoapods:
warning: Multiple targets match implicit dependency for linker flags '-framework Alamofire'. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in target 'Gaels Connect' from project 'gradeApp')
note: Target 'Alamofire-iOS14.0' (in project 'Pods')
note: Target 'Alamofire-iOS14.2' (in project 'Pods')
warning: Multiple targets match implicit dependency for linker flags '-framework AlamofireImage'. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in target 'Gaels Connect' from project 'gradeApp')
note: Target 'AlamofireImage-iOS14.0' (in project 'Pods')
note: Target 'AlamofireImage-iOS14.2' (in project 'Pods')
warning: Multiple targets match implicit dependency for linker flags '-framework CryptoSwift'. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in target 'Gaels Connect' from project 'gradeApp')
note: Target 'CryptoSwift-iOS14.0' (in project 'Pods')
note: Target 'CryptoSwift-iOS14.2' (in project 'Pods')
warning: Multiple targets match implicit dependency for linker flags '-framework DropDown'. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in target 'Gaels Connect' from project 'gradeApp')
note: Target 'DropDown-iOS14.0' (in project 'Pods')
note: Target 'DropDown-iOS14.2' (in project 'Pods')
warning: Multiple targets match implicit dependency for linker flags '-framework FBLPromises'. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in target 'Gaels Connect' from project 'gradeApp')
note: Target 'PromisesObjC-iOS14.0' (in project 'Pods')
note: Target 'PromisesObjC-iOS14.2' (in project 'Pods')
warning: Multiple targets match implicit dependency for linker flags '-framework FirebaseABTesting'. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in target 'Gaels Connect' from project 'gradeApp')
note: Target 'FirebaseABTesting-iOS14.0' (in project 'Pods')
note: Target 'FirebaseABTesting-iOS14.2' (in project 'Pods')
warning: Multiple targets match implicit dependency for linker flags '-framework FirebaseCore'. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in target 'Gaels Connect' from project 'gradeApp')
note: Target 'FirebaseCore-iOS14.0' (in project 'Pods')
note: Target 'FirebaseCore-iOS14.2' (in project 'Pods')
...
The problem was that the two schemes had two different iOS deployment versions (one was iOS 14 and the other was iOS 14.2). Once I switched them both to iOS 13.0, I was able to archive both apps successfully.
run pod deintegrate then remove podfile.lock then pod install then set build active architecture to yes
also, it maybe help if u put this at the end of pod file
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
Related
I am trying to deploy my ios react-native app to the AppStore, using fastlane to automate the deployment for beta testing with TestFlight. However, my fastlane beta command builds the app then fails after the archive succeeded in building.
The part failing is:
rbenv detected, removing env variables
rbenv: shell integration not enabled. Run `rbenv init' for instructions.
+ xcodebuild -exportArchive -exportOptionsPlist /var/folders/hq/xkbjj40x4gv1hx_q80vj7rh40000gn/T/gym_config20210223-39939-lz42w9.plist -archivePath './builds/project 2021-02-23 15.21.33.xcarchive' -exportPath /var/folders/hq/xkbjj40x4gv1hx_q80vj7rh40000gn/T/gym_output20210223-39939-1ehxxzu
error: archive at path '/Users/me/project/ios/builds/project 2021-02-23 15.21.33.xcarchive' is malformed
** EXPORT FAILED **
If I run xcrun rbenv init it produces the expected output, and my .zshrc and .bashrc contain eval "$(rbenv init -)" and xcrun has the same environment variables as my zsh. However, xcrun rbenv shell produces rbenv: shell integration not enabled. Run 'rbenv init' for instructions. as well as running xcrun rbenv shell 2.6.3. If rbenv shell 2.6.3 is run in zsh, rbenv is set to that version.
I suspect this may not be the cause of the issue, I've tried reinstalling xcode cli tools and reinstalling ruby. Before the Archive finishes in fastlane, the following warnings are given:
[15:27:18]: ▸ no rule to process file '/Users/me/project/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
[15:27:18]: ▸ no rule to process file '/Users/me/project/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
[15:27:18]: ▸ no rule to process file '/Users/me/project/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'Flipper-RSocket' from project 'Pods')
[15:27:18]: ▸ no rule to process file '/Users/me/project/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'armv7' (in target 'Flipper-RSocket' from project 'Pods')
[15:27:18]: ▸ no rule to process file '/Users/me/project/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'armv7' (in target 'Flipper-RSocket' from project 'Pods')
[15:27:18]: ▸ no rule to process file '/Users/me/project/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'armv7' (in target 'Flipper-RSocket' from project 'Pods')
My Fastfile looks like:
default_platform(:ios)
platform :ios do
desc "Push a new beta build to TestFlight"
lane :beta do
increment_build_number(xcodeproj: "project.xcodeproj")
get_certificates( # Create or get certificate, and install it
output_path: "./builds" # Download certificate in the build folder (you don't need to create the folder)
)
get_provisioning_profile( # Create or get provisioning profile
output_path: "./builds", # Download provisioning profile in the build folder
filename: "provisioning.mobileprovision" # Rename the local provisioning profile
)
update_project_provisioning( # Set the project provisioning profile (related in Xcode to the General > Signing Release section)
xcodeproj: "project.xcodeproj",
target_filter: "project", # Name of your project
profile: "./builds/provisioning.mobileprovision",
build_configuration: "Release"
)
update_project_team( # Set the right team on your project
teamid: CredentialsManager::AppfileConfig.try_fetch_value(:team_id)
)
build_app(
workspace: "project.xcworkspace",
scheme: "project",
clean: true,
export_method: "app-store",
export_options: {
provisioningProfiles: {
CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier) => CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier) + " AppStore" # Value of this parameter is the name of the Provisioning Profile. By default, it will be "{bundleId} AppStore"
}
},
build_path: "./builds",
output_directory: "./builds")
upload_to_testflight
end
end
Podfile:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
require_relative '../node_modules/#react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
target 'project' do
use_unimodules!
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
target 'projectTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
use_flipper!({ 'Flipper-Folly' => '2.3.0' })
post_install do |installer|
flipper_post_install(installer)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
end
target 'project-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
Had to update my mapbox package in package.json to a beta version that came out a week ago.
"#react-native-mapbox-gl/maps": "8.2.0-beta1",
https://github.com/react-native-mapbox-gl/maps/pull/1262
When I write this command 'npm run ios' I get this error:
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening PhotoSearch.xcworkspace. Run CLI with --verbose flag for more details.
User defaults from command line:
IDEDerivedDataPathOverride = /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch
note: Using new build system
note: Planning build
note: Constructing build description
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Zocial.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/Zocial.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Zocial.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/SimpleLineIcons.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/SimpleLineIcons.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Octicons.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/Octicons.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Octicons.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/MaterialIcons.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/MaterialIcons.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/MaterialCommunityIcons.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/MaterialCommunityIcons.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Ionicons.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/Ionicons.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Ionicons.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Foundation.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/Foundation.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Foundation.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Fontisto.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/Fontisto.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Fontisto.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Solid.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Solid.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Regular.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Regular.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Brands.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Brands.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Feather.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/Feather.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Feather.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/EvilIcons.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/EvilIcons.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Entypo.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/Entypo.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Entypo.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/AntDesign.ttf':
1) Target 'PhotoSearch' (project 'PhotoSearch') has copy command from '/Users/front.end.af/Documents/Nikita/kinoagenstvo/node_modules/react-native-vector-icons/Fonts/AntDesign.ttf' to '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/AntDesign.ttf'
2) That command depends on command in Target 'PhotoSearch' (project 'PhotoSearch'): script phase “[CP] Copy Pods Resources”
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'react-native-orientation' from project 'Pods')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/AntDesign.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Entypo.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/EvilIcons.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Feather.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Brands.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Regular.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/FontAwesome5_Solid.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Fontisto.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Foundation.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Ionicons.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/MaterialCommunityIcons.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/MaterialIcons.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Octicons.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/SimpleLineIcons.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: duplicate output file '/Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Products/Debug-iphonesimulator/PhotoSearch.app/Zocial.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/front.end.af/Documents/Nikita/kinoagenstvo/ios/build/PhotoSearch/Build/Intermediates.noindex/PhotoSearch.build/Debug-iphonesimulator/PhotoSearch.build/Script-97FA921B89C00DA950E1ACE1.sh (in target 'PhotoSearch' from project 'PhotoSearch')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 6.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'RSKImageCropper' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 6.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'libwebp' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'react-native-viewpager' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'RNImageRotate' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'react-native-image-picker' from project 'Pods')
** BUILD FAILED **
I encountered the same bug when i installed react-native-vector-icons package. This issue is related to the autolinking feature on React Native 0.60+
Open the project into XCode (by opening the .xcworkspace file if you have used CocoaPods or the .xcodeproj file); in the main application tab, look for the Build Phases tab (between Build Setting and Build Rules); open the section Copy Bundle Resources and manually remove all the fonts listed into the error.
Be careful to not touch the [CP] Copy Pods Resources section because you can find the fonts inside that section too!
I have a pod project, containing an example that demonstrates the usage of the pod. The bitcode enabled setting is set to yes, both on the example and Pod targets. The following is the Podfile of the example:
use_frameworks!
platform :ios, '10.0'
target 'MyPod_Example' do
pod 'MyPod', :path => '../'
target 'MyPod_Tests' do
inherit! :search_paths
end
end
The example app runs well on the Simulator, but while trying to run it on an iPhone 6S, I get the following build error:
ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
clang: error: linker command failed with exit code 1 (use -v to see invocation).
How do I fix this?
Another project that I have that has the same pod, but downloads the pod from its repo works fine on iPhone, with bitcode enabled. The following shows the Podfile structure of the app that works:
source '<my pod spec repo>'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
target 'MyPodTest' do
use_frameworks!
# Pods for MyPodTest
pod 'MyPod'
target 'MyPodTestTests' do
inherit! :search_paths
# Pods for testing
end
target 'MyPodTestUITests' do
inherit! :search_paths
# Pods for testing
end
end
The -bitcode_bundle flag being passed to ld is described in the error message ("Xcode setting ENABLE_BITCODE=YES"), but the -bundle flag is not, which can make this confusing and hard to debug.
If you look at the lines preceding this error, you will likely see two important ones:
WriteAuxiliaryFile /Users/YOURUSER/Library/Developer/Xcode/DerivedData/YOURPROJECT-xxxxx/Build/Intermediates.noindex/YOURPROJECT.build/Release-SDK/TARGET.build/DerivedSources/TARGET_vers.c (in target 'TARGET' from project 'YOURPROJECT')
CompileC /Users/YOURUSER/Library/Developer/Xcode/DerivedData/YOURPROJECT-xxxxx/Build/Intermediates.noindex/YOURPROJECT.build/Release-SD/TARGET.build/Objects-normal/arm64/TARGET_vers.o /Users/YOURUSER/Library/Developer/Xcode/DerivedData/YOURPROJECT-xxxxx/Build/Intermediates.noindex/YOURPROJECT.build/Release-SDK/TARGET.build/DerivedSources/TARGET_vers.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'TARGET' from project 'YOURPROJECT')
These two lines are the real meat of your problem. Your bundle, which formerly had no binary files in it (only PNGs, XIBs, and other resources), now has a binary file. One that was created by Xcode. Because this binary was created as part of a resource bundle target, it's compiled as a CFBundleExecutable using the -bundle flag, which is incompatible with ENABLE_BITCODE. Instead of disabling bitcode, though, you should prevent this binary from being generated in the first place.
This binary is being created by Apple Generic Versioning. To get rid of it, go to your build settings tab (on your resource bundle target), click the "all" button to see all settings, then search for "versioning system". Change this from "Apple Generic" to "None". Resource bundles do not properly support versioning.
error: no such module 'RealmSwift'
import RealmSwift
While building a project from Xcode, it's working fine. Building it from Jenkins,gives me the above mentioned error.
** BUILD FAILED **
The following build commands failed:
CompileSwift normal arm64
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
Build step 'Xcode' marked build as failure
Finished: FAILURE
My Pod file looks like below
target 'MyProject' do
use_frameworks!
# Pods for MyProject
pod 'Google/Analytics'
pod 'GoogleTagManager','~> 3.15.0'
pod 'RealmSwift','~> 2.1'
target 'MyProjectTests' do
# Pods for testing
end
target 'MyProjectUITests' do
# Pods for testing
end
end
You may not have versioned your Pods directory.
You can either remove Pods from your .gitignore, or add a pod install command inside each jenkins script.
I get linking error when trying to compile iOS project from terminal with Xcode 7.1.1:
xcodebuild -project MyProject.xcodeproj -configuration Debug -target MyProject build
As result I receive next error:
ld: framework not found AFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Here is my pod file:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
target "MyProject" do
pod "AFNetworking", "~> 2.0"
pod 'GoogleMaps'
pod 'MONActivityIndicatorView'
pod 'NYXImagesKit'
pod 'MagicalRecord'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'Countly'
end
xcodeproj 'MyProject'
I also tried adding link_with but get the same error. How to fix the problem above?
You need to build using the workspace generated by CocoaPods:
xcodebuild -workspace MyProject.xcworkspace -configuration Debug -scheme MyProject build
If you build just the project, xcodebuild does not see the dependency on the Pods project. Note that you have to use a scheme when building a workspace rather than a target. This means if you are building on a build server you will need to mark your scheme as shared in the scheme editor.