nextcloud / nextcloud/ios

Build error on latest versions

Open
#1,158 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
2.5k
Forks
1k
Avg merge
2d 18h
Merged PRs (30d)
13

Description

Building the iOS client fails first with an unresolved import on Nextcloud-swift.h which I haven't got in the freshly cloned project.
However, commenting that, even building the carthage depencies successfully, Xcode gives me an error over NCManagedDatabase symbols not being resolved.

/nextcloud-ios/iOSClient/Networking/OCNetworking.m:329:5: Use of undeclared identifier 'tableAccount'
/nextcloud-ios/iOSClient/Networking/OCNetworking.m:329:36: Use of undeclared identifier 'NCManageDatabase'

Expected behaviour

Builds successfully

Actual behaviour

Build fails with errors

Steps to reproduce

Clone iOS project
Checkout latest master
Run carthage build --platform ios script
Open Xcode
Build

App version

2.25.8
Operating system:
10.14.6 Mojave
Xcode 11.3.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported build steps with the iOS project and Carthage, then inspect the unresolved Nextcloud-swift.h import and iOSClient/Networking/OCNetworking.m around line 329. Check why NCManagedDatabase symbols and tableAccount are unavailable in the Xcode build. Done means the project builds successfully on the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
objective-c, swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.