Git Product home page Git Product logo

atomos's People

Contributors

davidapgar avatar janpio avatar segiddins avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

atomos's Issues

`atomic_write` is broken on Windows

I amy trying to run project using xcodeproj, which uses atomos, on Windows.
Unfortunately this fails with this error message in atomic_write:

C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/atomos-0.1.2/lib/atomos.rb:23:in `rename': [!] Permission denied @ rb_file_s_rename - (C:/Users/Jan/AppData/Local/Temp/.atomos.project.pbxproj20180806-12188-1yujbo3, C:/Projects/Fastlane/fastlane-demo/ionic/FastlaneDemoIonic/platforms/ios/FastlaneDemoIonic.xcodeproj/project.pbxproj) (Errno::EACCES)
        from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/atomos-0.1.2/lib/atomos.rb:23:in `block in atomic_write'
        from C:/Ruby24-x64/lib/ruby/2.4.0/tempfile.rb:295:in `open'
        from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/atomos-0.1.2/lib/atomos.rb:16:in `atomic_write'
        from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/xcodeproj-1.5.9/lib/xcodeproj/project.rb:354:in `save'
        ...

Crashing code is triggered here:
https://github.com/CocoaPods/Xcodeproj/blob/c6c0dbb0f977367c32fceea514c372dc9f8ab13f/lib/xcodeproj/project.rb#L354-L362

Crashing code is this:

File.rename(tmpfile.path, dest)

(Original issue for this was at CocoaPods/Xcodeproj#549 - now moved here as I actually have to get this working)

Create a proper README

At this state, one have to look through the code to fully understand what this repo does.

๐Ÿบ

File rename error - macOS Catalina

Hi there,

I was just running pod update, then I got this error:

### Error

Errno::EXDEV - Cross-device link @ rb_file_s_rename - (/var/folders/73/qmchj7tx5jv2d2cz2rsx3_yh0000gn/T/.atomos.project.pbxproj20190729-13707-13jqlpy, /MyApp/build/iOS/Debug/Pods/Pods.xcodeproj/project.pbxproj)
/Library/Ruby/Gems/2.6.0/gems/atomos-0.1.3/lib/atomos.rb:26:in `rename'
/Library/Ruby/Gems/2.6.0/gems/atomos-0.1.3/lib/atomos.rb:26:in `block in atomic_write'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tempfile.rb:295:in `open'
/Library/Ruby/Gems/2.6.0/gems/atomos-0.1.3/lib/atomos.rb:17:in `atomic_write'
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.11.0/lib/xcodeproj/project.rb:363:in `save'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:56:in `block (2 levels) in write!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/user_interface.rb:145:in `message'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:42:in `block in write!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:41:in `each'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:41:in `write!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:313:in `block in create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:290:in `create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:281:in `generate_pods_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:159:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/command/update.rb:62:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

pod file:

platform :ios, '9.3'

target 'MyApp' do
	use_frameworks!
	pod 'lottie-ios', '~> 2.5.3'
	pod 'UberRides', '~> 0.11'
end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.