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 fails #23

Closed
anoop-b opened this issue Jul 18, 2019 · 10 comments
Closed

iOS build fails #23

anoop-b opened this issue Jul 18, 2019 · 10 comments

Comments

@anoop-b
Copy link

anoop-b commented Jul 18, 2019

flutter run works fine on android build, but on iOS it gives the following error:

  'razorpay_flutter/razorpay_flutter-Swift.h' file not found

Here's my flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.7.8+hotfix.3, on Mac OS X 10.14.5 18F132, locale
    en-IN)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
[✓] iOS tools - develop for iOS devices
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.36.1)
[✓] Connected device (1 available)

• No issues found!
@anoop-b
Copy link
Author

anoop-b commented Jul 18, 2019

Apparently using this in the pod file fixes the issue.

target 'Runner' do
  use_frameworks!

Include it in your docs maybe?

@160905
Copy link

160905 commented Jul 23, 2019

I also encountered an increase in the problem, plus use_frameworks does not work.

@ChintanAcharya
Copy link
Contributor

@160905 Can you try adding use_frameworks! outside of target 'Runner' do and see if it works? Also, can you please share the build error message here?

@anoop-b We've added this to our docs in #24

@anoop-b
Copy link
Author

anoop-b commented Jul 24, 2019

@ChintanAcharya I can confirm, its working now.

@160905
Copy link

160905 commented Jul 31, 2019

This is the warehouse address of the demo. https://gitee.com/zhuzhennan/flutter-app。It works fine on the emulator, but the build fails on your own ipone phone. If you have time, can you help me with this problem?I used some plugins in this demo.https://flutter-debugger.blankapp.org/guide/。These plugins are very convenient, I don't know if there is any conflict.

@160905
Copy link

160905 commented Aug 1, 2019

I tried to debug on my own Iphone with your example, or I can't install it successfully.Here are some errors:

ls:  Xcode could not determine type of profile "/Users/zhuzhennan/Library/MobileDevice/Provisioning Profiles/e17f832e-91a0-4024-a12f-121f04a93226.mobileprovision" (could be {(
    )})
    Object:   <IDEProfileQualification: 0x7fb33e937790>
    Method:   -_profileTypeQualifier
    Thread:   <NSThread: 0x7fb33c76af00>{number = 11, name = (null)}
    Please file a bug at https://bugreport.apple.com with this warning message and any useful information you can provide.
    ** BUILD FAILED **
Xcode's output:
↳
    ld: warning: Could not find auto-linked framework 'Flutter'
    Undefined symbols for architecture arm64:
      "_OBJC_CLASS_$_FlutterMethodChannel", referenced from:
          objc-class-ref in FluttertoastPlugin.o
      "_FlutterMethodNotImplemented", referenced from:
          -[FluttertoastPlugin handleMethodCall:result:] in FluttertoastPlugin.o
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
Could not build the precompiled application for the device.

Error launching application on 迁客骚人豪华版特供机.

@160905
Copy link

160905 commented Aug 1, 2019

Launching lib/main.dart on 迁客骚人豪华版特供机 in debug mode...
Signing iOS app for device deployment using developer identity: "iPhone Developer: zhennan Zhu (6CKPGJ87NM)"
Xcode build done.                                            1.4s
Failed to build iOS app
Error output from Xcode build:
↳
    2019-08-01 15:18:40.340 xcodebuild[11683:1498984]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-14492.2/IDEFoundation/Provisioning/IDEProfileQualification.m:509
    Details:  Xcode could not determine type of profile "/Users/zhuzhennan/Library/MobileDevice/Provisioning Profiles/e17f832e-91a0-4024-a12f-121f04a93226.mobileprovision" (could be {(
    )})
    Object:   <IDEProfileQualification: 0x7fb341532840>
    Method:   -_profileTypeQualifier
    Thread:   <NSThread: 0x7fb33c76af00>{number = 11, name = (null)}
    Please file a bug at https://bugreport.apple.com with this warning message and any useful information you can provide.
    2019-08-01 15:18:40.598 xcodebuild[11683:1498984]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-14492.2/IDEFoundation/Provisioning/IDEProfileQualification.m:509
    Details:  Xcode could not determine type of profile "/Users/zhuzhennan/Library/MobileDevice/Provisioning Profiles/e17f832e-91a0-4024-a12f-121f04a93226.mobileprovision" (could be {(
    )})
    Object:   <IDEProfileQualification: 0x7fb33e937790>
    Method:   -_profileTypeQualifier
    Thread:   <NSThread: 0x7fb33c76af00>{number = 11, name = (null)}
    Please file a bug at https://bugreport.apple.com with this warning message and any useful information you can provide.
    ** BUILD FAILED **
Xcode's output:
↳
    ld: warning: Could not find auto-linked framework 'Flutter'
    Undefined symbols for architecture arm64:
      "_OBJC_CLASS_$_FlutterMethodChannel", referenced from:
          objc-class-ref in FluttertoastPlugin.o
      "_FlutterMethodNotImplemented", referenced from:
          -[FluttertoastPlugin handleMethodCall:result:] in FluttertoastPlugin.o
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
Could not build the precompiled application for the device.

Error launching application on 迁客骚人豪华版特供机.
Exited (sigterm)

@JayakumarB
Copy link

I tried to debug on my own Iphone with your example, or I can't install it successfully.Here are some errors:

ls:  Xcode could not determine type of profile "/Users/zhuzhennan/Library/MobileDevice/Provisioning Profiles/e17f832e-91a0-4024-a12f-121f04a93226.mobileprovision" (could be {(
    )})
    Object:   <IDEProfileQualification: 0x7fb33e937790>
    Method:   -_profileTypeQualifier
    Thread:   <NSThread: 0x7fb33c76af00>{number = 11, name = (null)}
    Please file a bug at https://bugreport.apple.com with this warning message and any useful information you can provide.
    ** BUILD FAILED **
Xcode's output:
↳
    ld: warning: Could not find auto-linked framework 'Flutter'
    Undefined symbols for architecture arm64:
      "_OBJC_CLASS_$_FlutterMethodChannel", referenced from:
          objc-class-ref in FluttertoastPlugin.o
      "_FlutterMethodNotImplemented", referenced from:
          -[FluttertoastPlugin handleMethodCall:result:] in FluttertoastPlugin.o
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
Could not build the precompiled application for the device.

Error launching application on 迁客骚人豪华版特供机.

I'm also facing same issue any solution please ?

@umanghome
Copy link
Contributor

@160905 Does this solution for work you? #25 (comment)

@Nautiyalsachin
Copy link
Contributor

Closing this issue due to inactivity. Please feel free to either re-open the issue or create a new ticket if you have any additional issues.

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

6 participants