Closed
Description
The error print
error: the following command failed with exit code 0 but produced no further output
CompileC /Users/paco/Library/Developer/Xcode/DerivedData/Runner-bidthradlmamepejziapbzsplvkm/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Objects-normal/armv7/main.o /Users/paco/Workspaces/flutterapp/ios/Runner/main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
error: open /Users/paco/Workspaces/flutterapp/build/ios/Debug-iphoneos/Runner.app/Frameworks/Flutter.framework/Flutter: Permission denied
note: Using new build systemnote: Planning buildnote: Constructing build description
Could not build the precompiled application for the device.
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
pacoyang commentedon Jul 11, 2018
When I switch Xcode 10 to Xcode 9, the App successful launch on the iOS 11
zoechi commentedon Jul 11, 2018
Please add the output of
flutter doctor
.Did you check what the permissions are there?
Does it run in the Simulator?
pacoyang commentedon Jul 11, 2018
The Flutter.framework permissions
it run successful in the Simulator
zoechi commentedon Jul 11, 2018
Testing with
dev
channel might be worth a try.flutter channel dev
pacoyang commentedon Jul 11, 2018
I have try with dev channel, get the same error.
ajzuse commentedon Jul 11, 2018
I'm using the master channel and getting the same error.
Flutter doctor
[✓] Flutter (Channel master, v0.5.7-pre.99, on Mac OS X 10.13.5 17F77, locale pt-BR)
• Flutter version 0.5.7-pre.99 at /Users/ajzuse/frameworks/flutter
• Framework revision cf93249 (69 minutes ago), 2018-07-11 12:48:55 -0700
• Engine revision ce06bba
• Dart version 2.0.0-dev.63.0.flutter-4c9689c1d2
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/ajzuse/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /Users/ajzuse/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.0, Build version 10L201y
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 26.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] VS Code (version 1.25.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.15.0
[✓] Connected devices (2 available)
• Vibe K5 Plus • 2c09c489 • android-arm64 • Android 8.1.0 (API 27)
• Andrei J. Zuse • 09bc56a2663993fffeda49c87da71506373b7024 • ios • iOS 12.0
• No issues found!
xster commentedon Jul 11, 2018
cc @cbracken looks possibly 32-bit related?
cbracken commentedon Jul 12, 2018
@pacoyang @ajzuse would one of you mind providing the full log output of
flutter --verbose run
of your app here?I haven't yet tested with Xcode 10 beta 3 and the latest iOS 12 beta (which is what's being run in both cases), but I've definitely seen reports of deprecation warnings for i386 host (engine) builds starting with beta 2. Last I tested (Xcode 10 beta 1, first iOS 12 beta), things were working alright, so could be something's changed recently.
I'll take a quick look tomorrow.
pacoyang commentedon Jul 12, 2018
@cbracken Here is the
flutter run --verbose
error print. I think this is the problem with Xcode 10 beta 3, I have switch the Xcode version to latest Xcode 9 , it works alright. You can try test it in Xcode 10 beta 3, I guess you can get the same error.ajzuse commentedon Jul 12, 2018
@cbracken here is the the result of
flutter run --verbose
darrarski commentedon Jul 12, 2018
I can confirm the bug exists when using Flutter (0.5.7-pre.105) with latest beta of Xcode (10.0 beta 3). As you can read from build log,
Flutter.framework/Flutter
executable has indeed wrong access permissions ("write" flag is missing for "owner"). I didn't manage to solve the problem, but I noticed that switching to legacy build system in Xcode helps.ios/Runner.xcworkspace
in Xcode 10 beta 3If there is no
Runner.xcworkspace
inios
directory, openRunner.xcodeproj
and instead of "Workspace Settings..." choose "Project settings...", rest is the same.I think the issue could be a bug in "New build system" that comes with Xcode 10 (that would mean it's independent from Flutter), or it could be a problem with build configuration for
Flutter.framework
. Anyway, as a workaround we can just switch to legacy build system (known as a default one from previous versions of Xcode) and the problem should disappear.21 remaining items