Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

React Native iOS Build - Directory not found for option

$
0
0

Description

I'm doing the build process of my IOS app with the App Center. But it runs pod install and in the next step it uses .xcodeproj instead of .xcworkspace folder. It gives an error of directory not found.

I would like to know why the error is happening with the .xcodeproj file and not with the .xcworkspace folder and what is that error, that will help me to prevent that happens again with other projects.

React Native version:

0.61.2

Steps

1) The installation of pod dependencies works fine

==============================================================================Task         : CocoaPodsDescription  : Install CocoaPods dependencies for Swift and Objective-C Cocoa projectsVersion      : 0.151.1Author       : Microsoft CorporationHelp         : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/cocoapods==============================================================================[command]/usr/local/lib/ruby/gems/2.6.0/bin/pod --version1.7.5[command]/usr/local/lib/ruby/gems/2.6.0/bin/pod install --repo-updateUpdating local specs repositories....[!] Please close any current Xcode sessions and use `FastFeet.xcworkspace` for this project from now on.Sending statsPod installation complete! There are 24 dependencies from the Podfile and 25 total pods installed.The STDIO streams did not close within 10 seconds of the exit event from process '/usr/local/lib/ruby/gems/2.6.0/bin/pod'. This may indicate a child process inherited the STDIO streams and has not yet exited.##[section]Finishing: Pod install

2) Xcode build step uses sgeo.xcodeproj instead sgeo.xcworkspace and uses. That's why it fails and would to know why.

##[section]Starting: Xcode build (not signed)==============================================================================Task         : XcodeDescription  : Build, test, or archive an Xcode workspace on macOS. Optionally package an app.Version      : 4.130.0Author       : Microsoft CorporationHelp         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613730)==============================================================================[command]/usr/bin/xcodebuild -versionXcode 10.3Build version 10G8##[warning]Output directory for build output (binaries) ignored. Specifying an output directory is incompatible with the 'archive' action.[command]/usr/bin/xcodebuild -project /Users/vsts/agent/2.155.1/work/1/s/ios/sgeo.xcodeproj -scheme sgeo clean archive -archivePath /Users/vsts/agent/2.155.1/work/1/output/build/archive/sgeo.xcarchive CODE_SIGNING_ALLOWED=NO...ld: warning: directory not found for option '-L/Users/vsts/Library/Developer/Xcode/DerivedData/sgeo-byybcvsvzaukpqcrnnthwhpvohyi/Build/Intermediates.noindex/ArchiveIntermediates/sgeo/BuildProductsPath/Release-iphoneos/React-Core'ld: warning: directory not found for option '-L/Users/vsts/Library/Developer/Xcode/DerivedData/sgeo-byybcvsvzaukpqcrnnthwhpvohyi/Build/Intermediates.noindex/ArchiveIntermediates/sgeo/BuildProductsPath/Release-iphoneos/React-DevSupport'ld: warning: directory not found for option '-L/Users/vsts/Library/Developer/Xcode/DerivedData/sgeo-byybcvsvzaukpqcrnnthwhpvohyi/Build/Intermediates.noindex/ArchiveIntermediates/sgeo/BuildProductsPath/Release-iphoneos/React-RCTActionSheet'ld: warning: directory not found for option '-L/Users/vsts/Library/Developer/Xcode/DerivedData/sgeo-byybcvsvzaukpqcrnnthwhpvohyi/Build/Intermediates.noindex/ArchiveIntermediates/sgeo/BuildProductsPath/Release-iphoneos/React-RCTAnimation'** ARCHIVE FAILED **The following build commands failed:    Ld /Users/vsts/Library/Developer/Xcode/DerivedData/sgeo-byybcvsvzaukpqcrnnthwhpvohyi/Build/Intermediates.noindex/ArchiveIntermediates/sgeo/IntermediateBuildFilesPath/sgeo.build/Release-iphoneos/sgeo.build/Objects-normal/arm64/sgeo normal arm64(1 failure)##[error]Error: /usr/bin/xcodebuild failed with return code: 65##[section]Finishing: Xcode build (not signed)

Expected Results

App Center Build step needs to detect the .xcworkspace folder instead of .xcodeproj, and uses it to the pod install step.

Snack, code example, screenshot, or link to a repository:

https://ibb.co/jWWVjb2


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>