Can't build newest Nextcloud version in xcode
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 2.5k
- Forks
- 1k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 13
Description
Expected behaviour
I expected the app to build and run on my selected test device (iPhone 11 Pro Max)
Actual behaviour
The app Build failed throwing he following errors:
Notification Service Extension:
- Command CompileSwift failed with a nonzero exit code
File Provider Extension:
- Command PrecompileSwiftBridgingHeader failed with a nonzero exit code
Share:
- /{MyPath}/Nextcloud/Carthage/Build/iOS/OpenSSL.framework/Headers/ssl.h:146:11: 'openssl/e_os2.h' file not found
- /{MyPath}/Nextcloud/iOSClient/Security/NCEndToEndEncryption.h:25:9: Could not build module 'OpenSSL'
- Failed to emit precompiled header '/{MyUserPath}/Library/Developer/Xcode/DerivedData/Nextcloud-bjhwuvtkftbwjnglnalkzwoeikpr/Build/Intermediates.noindex/PrecompiledHeaders/Share-Bridging-Header-swift_ECT6RH9FHK43-clang_5WHP30MU3Z7J.pch' for bridging header '/{MyPath}/Nextcloud/Share/Share-Bridging-Header.h'
Project:
/{MyPath}/Nextcloud/iOSClient/Security/NCEndToEndEncryption.h:25:9: Could not build module 'OpenSSL'
Steps to reproduce
- Clone the newest repository (v 2.25.8, commit: 5485e60a9af3d7e86a9cb7b9014f508c844a2d3d)
- navigate to the cloned folder
- Open the Terminal and run
carthage bootstrap --platform iOS - Wait till it finishes
- Go into Xcode and try to build the application
iOS version
13.3
App version
v 2.25.8
Operating system:
macOS Catalina v. 10.15.3
Thanks in advance!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by following the listed Carthage bootstrap command for commit 5485e60a9af3d7e86a9cb7b9014f508c844a2d3d, then reproduce the Xcode build on the stated iOS and macOS versions. Inspect the Share bridging header and iOSClient/Security/NCEndToEndEncryption.h alongside the OpenSSL framework header errors. Done means the app builds and runs on the selected iPhone 11 Pro Max without these extension or OpenSSL errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c, swift
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100