Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-1467] SwiftPM not building on iCloud Drive after file changes #802

Closed
Bouke opened this issue May 10, 2016 · 2 comments
Closed

[SR-1467] SwiftPM not building on iCloud Drive after file changes #802

Bouke opened this issue May 10, 2016 · 2 comments
Assignees

Comments

@Bouke
Copy link

Bouke commented May 10, 2016

Previous ID SR-1467
Radar None
Original Reporter @Bouke
Type Bug
Status Resolved
Resolution Duplicate
Environment

OS X 10.11.4

Additional Detail from JIRA
Votes 0
Component/s llbuild
Labels Bug
Assignee @Bouke
Priority Medium

md5: eca35be7051ef6de20fb1bd69f01b2a2

duplicates:

  • SR-1468 SwiftPM not building path with spaces after file changes

Issue Description:

For easier moving between my iMac and MacBook, I use iCloud Drive to sync the projects. However `swift build` doesn't recognize the changes and doesn't build the package.

Reproduce:

➜  ~ cd ~/Library/Mobile\ Documents/com\~apple\~CloudDocscom~apple~CloudDocs mkdir myprojectcom~apple~CloudDocs cd myprojectmyproject swift build --init
Creating executable package: myproject
Creating Package.swift
Creating .gitignore
Creating Sources/
Creating Sources/main.swift
Creating Tests/
➜  myproject swift build
Compile Swift Module 'myproject' (1 sources)
Linking .build/debug/myprojectmyproject touch Sources/main.swiftmyproject swift buildmyproject

(note: no build)

Expected:

➜  ~ cd DeveloperDeveloper mkdir myprojectDeveloper cd myprojectmyproject swift build --init
Creating executable package: myproject
Creating Package.swift
Creating .gitignore
Creating Sources/
Creating Sources/main.swift
Creating Tests/
➜  myproject swift build
Compile Swift Module 'myproject' (1 sources)
Linking .build/debug/myprojectmyproject touch Sources/main.swiftmyproject swift build
Compile Swift Module 'myproject' (1 sources)
Linking .build/debug/myprojectmyproject
@ddunbar
Copy link
Member

ddunbar commented May 10, 2016

This might just be an instance of:
https://bugs.swift.org/browse/SR-1468

@abertelrud
Copy link
Contributor

I agree, after analyzing the root cause of that issue, I'm almost 100% sure that this is because of the "Mobile Documents" in that path. Any absolute path that requires escaping for any reason will trigger SR-1468.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants