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

receiving exception when I tried to rename #4

Closed
surapuramakhil opened this issue Apr 26, 2020 · 4 comments
Closed

receiving exception when I tried to rename #4

surapuramakhil opened this issue Apr 26, 2020 · 4 comments
Assignees

Comments

@surapuramakhil
Copy link

akhil-kfn@tech-laptop-bsd:~/OpenSource/SimpleChatUI$ pub global run rename --bundleId com.akhil.simplechat
IOS BundleIdentifier changed successfully to : com.akhil.simplechat
Unhandled exception:
FileSystemException: Cannot open file, path = 'macos/Runner/Configs/AppInfo.xcconfig' (OS Error: No such file or directory, errno = 2)
#0 _File.open. (dart:io/file_impl.dart:366:9)
#1 _RootZone.runUnary (dart:async/zone.dart:1439:54)
#2 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#3 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#4 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#5 Future._completeWithValue (dart:async/future_impl.dart:526:5)
#6 Future._asyncComplete. (dart:async/future_impl.dart:556:7)
#7 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#8 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#9 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#10 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)

@lambasoft
Copy link

I had the same issue. The workaround I did was to target each platform separately, so what I did was run both following commands:

flutter pub global run rename --appname yourappname --target android
flutter pub global run rename --appname yourappname --target ios

@onatcipli
Copy link
Owner

thank you for reporting, I will fix it soon

@onatcipli onatcipli self-assigned this Apr 30, 2020
@surapuramakhil
Copy link
Author

@onatcipli , from my understanding, if any of the build generated files are missing then it should fall back on build generation then perform rename

@onatcipli
Copy link
Owner

as you guess you getting this exception because of you don't have macos folder in your flutter project. I fixed it here in 1.2.0 version

thank you for reporting this again. I closing it for now if you face it again feel free to open it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants