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

Standalone embedder initialization failed: Error determining current directory: Operation not permitted #57552

Closed
kris1919 opened this issue May 19, 2020 · 10 comments
Labels
platform-ios iOS applications specifically t: xcode "xcodebuild" on iOS and general Xcode project management

Comments

@kris1919
Copy link

kris1919 commented May 19, 2020

Steps to Reproduce

1.use xcode,command+B to build ios -> failed
2.use flutter build ios -> success
3.use flutter run on ios devices -> success

Actual results:

Standalone embedder initialization failed: Error determining current directory: Operation not permitted

building file list ... rsync: link_stat "/Users/../ios/Flutter/App.framework" failed: No such file or directory (2)
done

sent 29 bytes  received 20 bytes  98.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-54/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
flutter doctor -v
[✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.15.1 19B88, locale zh-Hans-CN)
    • Flutter version 1.17.0 at /Users/krisyuhao/dev/flutter
    • Framework revision e6b34c2b5c (2 weeks ago), 2020-05-02 11:39:18 -0700
    • Engine revision 540786dd51
    • Dart version 2.8.1


[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/krisyuhao/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.9.1

[!] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.45.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.10.2

[✓] Connected device (2 available)
@VladyslavBondarenko
Copy link

Hi @kris1919
for what iOS version are you building? could you try to build for device with lower iOS version or to update xCode?
https://forums.developer.apple.com/thread/128200#403102

@VladyslavBondarenko VladyslavBondarenko added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels May 19, 2020
@VladyslavBondarenko
Copy link

Related to #57554

@kris1919
Copy link
Author

Hi @VladyslavBondarenko

I updated xcode to the latest version and still have problems
iOS devide version 12.4.5

Standalone embedder initialization failed: Error determining current directory: Operation not permitted

Command PhaseScriptExecution failed with a nonzero exit code

command line to build is ok

flutter build ios --release
Automatically signing iOS for device deployment using specified development team in Xcode 
Running pod install...                                              8.0s
Running Xcode build...                                                  
                                                   
 └─Compiling, linking and signing...                        36.3s
Xcode build done.                                           204.5s

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 20, 2020
@VladyslavBondarenko VladyslavBondarenko added waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds platform-ios iOS applications specifically t: xcode "xcodebuild" on iOS and general Xcode project management and removed waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds in triage Presently being triaged by the triage team labels May 20, 2020
@kris1919
Copy link
Author

macOS Operation not permitted!
1.restart and long press cmd+R ,enter protected mode
2.open terminal : csrutil disable
3.restart

@tskmark
Copy link

tskmark commented Jun 21, 2020

macOS Operation not permitted!
1.restart and long press cmd+R ,enter protected mode
2.open terminal : csrutil disable
3.restart

did this solve the your problem?

@Jay-Zhang
Copy link

I solve this issue by changing Access setting:

  1. Go to Menu System Preferences -> Security & Privacy.
    2.Choose the Privacy Tab.
    3.Select Full Disk Access item in left list.
    4.Select Xcode in right list.

@llama95
Copy link

llama95 commented Jan 9, 2021

I solve this issue by changing Access setting:

  1. Go to Menu System Preferences -> Security & Privacy.
    2.Choose the Privacy Tab.
    3.Select Full Disk Access item in left list.
    4.Select Xcode in right list.

you are the goat i spent at least 8 hours on this.... thank you times a million

@DeveloperIglobal
Copy link

I solve this issue by changing Access setting:

  1. Go to Menu System Preferences -> Security & Privacy.
    2.Choose the Privacy Tab.
    3.Select Full Disk Access item in left list.
    4.Select Xcode in right list.

this is work for me

@hkodes
Copy link

hkodes commented Jul 3, 2021

Easy way to Fix this:

  1. Go to Menu System Preferences -> Security & Privacy.
    2.Choose the Privacy Tab.
    3.Select Full Disk Access item in left list.
    4.Select Xcode in right list.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform-ios iOS applications specifically t: xcode "xcodebuild" on iOS and general Xcode project management
Projects
None yet
Development

No branches or pull requests

7 participants