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

iOS build errors - v0.1.1 #37

Closed
gmcdowell opened this issue Nov 27, 2018 · 1 comment
Closed

iOS build errors - v0.1.1 #37

gmcdowell opened this issue Nov 27, 2018 · 1 comment

Comments

@gmcdowell
Copy link

Am encountering a couple of issues when trying to build iOS.
Any tips/suggestions appreciated.

Crashlytics Configuration steps done

  1. Info.plist updated with Fabric ID
  2. Podfile: use_frameworks! (at top of file)
  3. Run script (last entry in list) added using snippet provided by Fabric e.g. "${PODS_ROOT}/Fabric/run" xxxxxx yyyyyy
  4. Info plist location configured for Run script entry above e.g. $(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)

General config details**

  • Legacy build system being used

Build CMD

flutter build ios -t lib/config/production.dart --release --no-codesign

Output:

Starting Xcode build...
├─Building Dart code... 38.0s

├─Generating dSYM file... 0.2s

├─Stripping debug symbols... 0.1s

├─Assembling Flutter resources... 1.9s

└─Compiling, linking and signing... 4.8s

Xcode build done. 47.9s
Failed to build iOS app
Error output from Xcode build:

** BUILD FAILED **

Xcode's output:

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===
ld: warning: Could not find auto-linked library 'swiftObjectiveC'
ld: warning: Could not find auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find auto-linked library 'swiftCore'
ld: warning: Could not find auto-linked library 'swiftQuartzCore'
ld: warning: Could not find auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find auto-linked library 'swiftDarwin'
ld: warning: Could not find auto-linked library 'swiftUIKit'
ld: warning: Could not find auto-linked library 'swiftCoreMedia'
ld: warning: Could not find auto-linked library 'swiftDispatch'
ld: warning: Could not find auto-linked library 'swiftFoundation'
ld: warning: Could not find auto-linked library 'swiftMetal'
ld: warning: Could not find auto-linked library 'swiftCoreImage'
ld: warning: Could not find auto-linked library 'swiftCoreAudio'
Undefined symbols for architecture arm64:
"dispatch thunk of Swift.Error._code.getter : Swift.Int", referenced from:
resilient protocol witness table for flutter_crashlytics.FlutterException : Swift.Error in flutter_crashlytics in
flutter_crashlytics(SwiftFlutterCrashlyticsPlugin.o)
resilient protocol witness table for flutter_crashlytics.FlutterCrash : Swift.Error in flutter_crashlytics in
flutter_crashlytics(SwiftFlutterCrashlyticsPlugin.o)
...

Environment details:

[✓] Flutter (Channel dev, v0.11.9, on Mac OS X 10.14.1 18B75, locale en-NZ)
• Flutter version 0.11.9 at /Users/greg/Library/Developer/flutter
• Framework revision d48e6e433c (6 days ago), 2018-11-20 22:05:23 -0500
• Engine revision 5c8147450d
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/greg/Library/Android/sdk
• Android NDK at /Users/greg/Library/Android/sdk/ndk-bundle
• Platform android-28, build-tools 28.0.3
• 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-1136-b06)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.4
• CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 30.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

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

[✓] Connected device (2 available)
• SM G570Y • 42008566cef5540b • android-arm • Android 8.0.0 (API 26) (emulator)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!

@gmcdowell
Copy link
Author

Resolved by adding empty swift file to project to have Xcode (10) auto-generated a bridging file, as described:
flutter/flutter#16049

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

1 participant