debugging cocopods repo for appcenter support
With another project I have been having issues getting a succesful build once I added coco-pods. This project is to walk through a simple from scratch project so AppCenter support has enough info to help trouble shoot the problem. I believe, not that the problem is systemic.
So Here is a walkthrough of what was done for this project. You can check out any commits and run locally on you own machine
react-native init debugproject- open Xcode and run project created - success
- Create repository
- add repository to the project
git initand thengit remote add origin git@github.com:ahujsak/appcenterdebug.git - commit and push init project
- create new project in appcenter
- link project to git repo (have not installed appcenter sdk)
- set up build for initial commit with legacy build selected on
- build is successful
- followed instructions for adding appecenter sdk
npm install appcenter appcenter-analytics appcenter-crashes --save-exact- Deleted package-lock.json
rm -rf node_modulesyarnreact-native link- open Xcode with workspace -> build
- success
- Commit and build on appcenter
- clang error
- I read on help site, to reopen the build settings and to save and build again
- turned off legacy build
- buid -> success
- Added provisioning profile to app center as well as correct certificate
- Build _> fail
- Guessing it was a conflict with bundle id, changed bundle id in Xcode and committed
- build -> fail
- Turned off credentials to not sign the build
- build -> fail
- Added correct credentials to Xcode to match bundle id.
- build locally -> success
- commit and build -> fail
- Added back signing credentials to appcenter
- build -> fail
- After initial response from support ticket over the weekend, I removed the Pods file from git
- build -> fail
- After interaction with Support, and lookin at the logs to compare, a key difference is in legacy build system vs new
- I switech to legacy build system
- build -> success
- So I tried the same thing in my other project and failed.
- so now I am going to add the rest of the pods to this project and see if there is a problem
- added pods for basic react native and did pod update Installing DoubleConversion (1.1.6) Installing Folly (2018.10.22.00) Installing React (0.59.8) Installing boost-for-react-native (1.63.0) Installing glog (0.3.5) Installing yoga (0.59.8.React)
- Local Build succcessful commit to appcennter
- build -> failed.
- The only change was to the pod file adding the above pods
- check the logs in
./crashlogs/logs_16/ - The following build commands failed:
Ld /Users/vsts/Library/Developer/Xcode/DerivedData/debugproject-frhbfcerhsbogmexcwddmwbbbhpn/Build/Intermediates.noindex/ArchiveIntermediates/debugproject/IntermediateBuildFilesPath/debugproject.build/Release-iphoneos/debugproject.build/Objects-normal/armv7/debugproject normal armv7
- followed support suggestion and read and followed article https://intercom.help/appcenter/build/ios/my-ios-builds-fail-with-clang-error-linker-command-failed-with-exit-code-1
* build failed again
* added logs to folder 18 in crash logs.
* this is the failed command
he following build commands failed:Ld /Users/vsts/Library/Developer/Xcode/DerivedData/debugproject-frhbfcerhsbogmexcwddmwbbbhpn/Build/Intermediates.noindex/ArchiveIntermediates/debugproject/IntermediateBuildFilesPath/debugproject.build/Release-iphoneos/debugproject.build/Objects-normal/armv7/debugproject normal armv7 (1 failure)` THere is no clang error there.
I am at a loss. I have added all of the logs to the repository as well. Crash logs 11 are the logs after I removed the Pod file.
The can be found in ./crashlogs