Skip to content

Error when building for iOS after following SDK setup tutorial #57

@lifenautjoe

Description

@lifenautjoe

Head's up: It's not working for android either. See #56
__

Description:
After following every step, to the letter of the Official SDK Setup, when running

flutter build ios --release

The job fails with

Building social.openbook.app for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: GAR7B57RXU
Running pod install...                                       1.6s
Starting Xcode build...
Xcode build done.                                            1.3s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    === BUILD TARGET Pods-Runner OF PROJECT Pods WITH CONFIGURATION Release-production ===
    ld:
    '/Users/lifenautjoe/Documents/code/openbook/openbook-app/build/ios/Release-production-iphoneos/TOCropViewController/libTOCropViewController.a(TOActivityCroppedIm
    ageProvider.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or
    disable bitcode for this target. file
    '/Users/lifenautjoe/Documents/code/openbook/openbook-app/build/ios/Release-production-iphoneos/TOCropViewController/libTOCropViewController.a' for architecture
    armv7
    clang: error: unable to execute command: Segmentation fault: 11
    clang: error: linker command failed due to signal (use -v to see invocation)
    ld:
    '/Users/lifenautjoe/Documents/code/openbook/openbook-app/build/ios/Release-production-iphoneos/TOCropViewController/libTOCropViewController.a(TOActivityCroppedIm
    ageProvider.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or
    disable bitcode for this target. file
    '/Users/lifenautjoe/Documents/code/openbook/openbook-app/build/ios/Release-production-iphoneos/TOCropViewController/libTOCropViewController.a' for architecture
    arm64
    clang: error: unable to execute command: Segmentation fault: 11
    clang: error: linker command failed due to signal (use -v to see invocation)
    === BUILD TARGET Pods-Runner OF PROJECT Pods WITH CONFIGURATION Release-production ===
    error: the following command failed with exit code 254 but produced no further output
    Ld
    /Users/lifenautjoe/Library/Developer/Xcode/DerivedData/Runner-fyejgxaqxiysevckyfsvnqjhzfai/Build/Intermediates.noindex/Runner.build/Release-production-iphoneos/O
    neSignalNotificationServiceExtension.build/Objects-normal/arm64/OneSignalNotificationServiceExtension normal arm64

I really have no clue what this might be.

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions