-
Notifications
You must be signed in to change notification settings - Fork 212
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
Documentation needs updating on how to integrate OneSignal for iOS #36
Comments
@sjmcdowall So do you mean this plugin does not work on IOS? |
@sjmcdowall Xcode's output: |
Once I get back to my computer I’ll compare output but my problem was Post pod - so this is a bit different
… On Nov 21, 2018, at 1:03 PM, Madhu ***@***.***> wrote:
@sjmcdowall
CocoaPods' output:
↳
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
Using `ARCHS` setting to build architectures of target
`Pods-OneSignalNotificationServiceExtension`: (``)
Finding Podfile changes
- Flutter
- OneSignal
- onesignal
Fetching external sources
-> Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
-> Fetching podspec for `onesignal` from `.symlinks/plugins/onesignal/ios`
Resolving dependencies of `Podfile`
[!] Unable to integrate the following embedded targets with their respective
host targets (a host target is a "parent" target which embeds a "child"
target like a framework or extension):
- Runner (true) and OneSignalNotificationServiceExtension (false) do not
both set use_frameworks!.
/usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods
/installer/analyzer.rb:377:in `analyze_host_targets_in_podfile'
/usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods
/installer/analyzer.rb:399:in `generate_targets'
/usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods
/installer/analyzer.rb:91:in `analyze'
/usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods
/installer.rb:243:in `analyze'
/usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods
/installer.rb:154:in `block in resolve_dependencies'
/usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods
/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods
/installer.rb:153:in `resolve_dependencies'
/usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods
/installer.rb:116:in `install!'
/usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods
/command/install.rb:41:in `run'
/usr/local/Cellar/cocoapods/1.5.3/libexec/gems/claide-1.0.2/lib/claide/comma
nd.rb:334:in `run'
/usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods
/command.rb:52:in `run'
/usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/bin/pod:55:in
`<top (required)>'
/usr/local/Cellar/cocoapods/1.5.3/libexec/bin/pod:22:in `load'
/usr/local/Cellar/cocoapods/1.5.3/libexec/bin/pod:22:in `<main>'
Error output from CocoaPods:
↳
[!] Automatically assigning platform `ios` with version `8.0` on target
`Runner` because no platform was specified. Please specify a platform for
this target in your Podfile. See
`https://guides.cocoapods.org/syntax/podfile.html#platform`.
[!] Automatically assigning platform `ios` with version `11.0` on target
`OneSignalNotificationServiceExtension` because no platform was specified.
Please specify a platform for this target in your Podfile. See
`https://guides.cocoapods.org/syntax/podfile.html#platform`.
Error running pod install
Error launching application on iPhone XR.
This is the logs for me, even after hardcoding the CFBundleIdentifier
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@sjmcdowall I just updated my logs. I just cloned this repo, updated the app id added some fire base ids for android. For iOS nothing, just the build itself is breaking. |
I'd like to see all the -v output and your command line you are trying using to run it .. (I assume it's nothing more than flutter run -d xxxxxx but who knows) So do a "flutter update" -- "flutter clean" -- then "flutter run -v -d xxxxx" ?? |
[ +28 ms] executing: [/Users/madhubhaskar/Desktop/flutter/] git rev-parse #0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3) flutter run -v -d apple_ios_simulator |
You need to give it a valid device -- do a "flutter devices" .. and choose the appropriate one and run it again ... (see the error message) ... flutter devices ✔ 10564 15:56:41 Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) So in my case I'd do a flutter run -v -d 1512D415-59BA-46D4-AC9D-87F524230F72 |
flutter run -v -d D98FAF32-FB61-4F87-A7D7-5EF69C8368BC
[ +2 ms] Trying to resolve native pub services.
[ +18 ms] Starting Xcode build... (completed)
[ +7 ms] Failed to build iOS app
[ ] Xcode's output:
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
Target\ Support PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
/Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/onesignal.build/Objects-normal/x86_64/OneSignalTagsController.o PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
/Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Script-BD6078845B63427256C7AAD2.sh /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Script-BD6078845B63427256C7AAD2
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignal /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignal /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/OneSignalNotificationServiceExt /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignal [ +15 ms] Could not build the application for the simulator. #0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3) |
Hate to ask an obvious question -- but you did do "one way or another" a "flutter packages get" ?? The "flutter upgrade" I think does that .. but .. maybe not.. But we're making progress (I think!) I had this error too in the sample project .. I now have to remember how I fixed it ... LOL |
lol would be nice if you remember it. |
BTW -- here is the Podfile I use in my project (which appears to work fine but I've only done very basic testing.. ) .. I have a LOT of plugins .. some are in Swift so hence the that part -- but it shouldn't hurt .. This isn't for the example project -- but from my own ..
|
Madhus-MacBook-Pro:example madhubhaskar$ flutter run -v -d D98FAF32-FB61-4F87-A7D7-5EF69C8368BC
[ +2 ms] Trying to resolve native pub services.
[ +24 ms] executing: mkfifo /var/folders/7k/rplqnssn1qv_jbkxfvm556pr0000gn/T/flutter_build_log_pipe.iw8DF5/pipe_to_stdout
|
[ +115 ms] └─Compiling, linking and signing... (completed)
[ +9 ms] Failed to build iOS app
[ ] Xcode's output:
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
/Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/onesignal.build/Objects-normal/x86_64/OneSignalTagsController.o PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh |
[-Wunguarded-availability]
Target\ Support PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
/Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Pods-OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/Pods-OneSi PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Pods-OneSignalNotificationServiceExtension.build/Pods-OneSignalNotificationSe -I/Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Pods-OneSignalNotificationServiceExtension.build/Pods-OneSignalNotification -I/Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Pods-OneSignalNotificationServiceExtension.build/Pods-OneSignalNotification /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Pods-OneSignalNotificationServiceExtension.build/Pods-OneSignalNotificationSe -I/Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Pods-OneSignalNotificationServiceExtension.build/DerivedSources/x86_64 /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Pods-OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/Pods-O /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Pods-OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/Pods-O /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Pods-OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/Pods-O
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Pods-OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/Pods-O
Target PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
/Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Script-BD6078845B63427256C7AAD2.sh /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Script-BD6078845B63427256C7AAD2
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignal /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignal /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/OneSignalNotificationServiceExt /Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignal
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
/Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/OneSignalNotificationServiceExt
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
LD_DEPENDENCY_INFO_FILE=/Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner_dependenc LINK_FILE_LIST_normal_x86_64=/Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner.Link PATH="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/T oolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer /usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin:/Applications/Xcode.app/Contents/Deve loper/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madhubhaskar/Desktop/flutter/bin"
Runner/AppDelegate.m PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
normal x86_64 PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
/Users/madhubhaskar/Library/Developer/Xcode/DerivedData/Runner-gmiuuvjqfzulkvbbwqngqxyociwn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.o PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Desktop/flutter/bin:/Users/madh [ +66 ms] Could not build the application for the simulator. #0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3) no luck @sjmcdowall |
Xcode's output: Could not build the application for the simulator. @sjmcdowall this only with flutter run |
Have you gone into Xcode and set it all up correctly for normal builds? Can you run an iOS flutter example / library example thing from the flutter GIT itself? That error message to me suggests something inXCode isn't setup correctly for development .. |
I am Able to run and build other projects of mine on iOS. I wanted to
implement push notification so checked out this repo.
…On 21-Nov-2018 11:02 PM, "S McDowall" ***@***.***> wrote:
Have you gone into Xcode and set it all up correctly for normal builds?
Can you run an iOS flutter example / library example thing from the flutter
GIT itself? That error message to me suggests something inXCode isn't setup
correctly for development ..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABE_TwaZEhjkt4mwKts17VUrc1lg6udqks5uxc2FgaJpZM4YnBfb>
.
|
OK - -fair enough -- just trying to remove the obvious problems .. :) |
Oh yes I understand. :-)
…On 21-Nov-2018 11:11 PM, "S McDowall" ***@***.***> wrote:
OK - -fair enough -- just trying to remove the obvious problems .. :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABE_T0y0aTuUiEuHIjv18cUvq8s8HPOFks5uxc99gaJpZM4YnBfb>
.
|
@MadhuSudhanBhaskar When you post a really really long debugging post, please just post a URL to Pastebin or something to make the thread easier to read. Does your project build successfully if you run directly from Xcode instead of using the Flutter CLI? Can you try cloning our repository and try running our example/demo project? Does it build & run successfully on your machine? Lastly, it is much easier to help with issues like this if you can post a zip of a project that reproduces this issue. |
@Nightsd01 I tried other project of mine from Xcode, made a build from there and I see it working. Ya the project that I am trying is just a clone of yours which just app id change. But I have still not added any certificates or enabled iOS for push notifications, I hope that is not causing any issue. Its a build issue or am I wrong? And sorry about the long logs! will take care of it next time. this Is again from new fresh clone Xcode's output: @Nightsd01 Android I have no issue, its jut replace app id and get it going. |
The workaround here is to install natively on iOS and Android it work with me |
of which Info.plist i have to change CFBundleIdentifier |
The path to the Info.plist in your Flutter app is That's what you have to change the |
In regards to the top issue from @sjmcdowall we've never been able to reproduce this. The Are you saying you added the |
@Nightsd01 -- Sorry to disagree, but then you haven't written enough Flutter applications. This is a side-effect of Flutter's scaffolding .. combined with create a complex app with lots of plugins / Podfiles, etc. |
@sjmcdowall Are you saying you added the |
@Nightsd01 - I did not ADD CFBundleIdentifer to the ./ios/Runner/Info.plist (which is the main target of a standard Flutter app). Rather, it's initial value is
Flutter tries to insert the proper value by scanning it's (originally) generated Xcode project file .. but adding more targets like OneSignal, etc. can cause Xcode, when saved, to re-arrange the project file and if that happens then the BundleId gets "corrupted" to the wrong one and nothing works. Does this clarify things? |
Closing this issue since no one else seems to have had a problem with this. |
This seems to be the problem I am having. I need to change the Product Bundle Identifier, inside the Build settings of the OneSignalNotificationServiceExtension, dynamically in order to match with our projects current identifier. I currently use fastlane scripts to update the projects Bundle Identifier and was wandering if there was a way to do this with fastlane or somehow inheriting the Bundle ID from the Build Settings of the main project. |
@Sethmr the extension service isn’t specific to our SDK, it’s actually an iOS app extension. Provisioning the Extension service dynamically is pretty far outside our ability to control. It might just be easier to create separate extension service targets for each flavor of app target you have (ie. dev vs production). Alternatively if there’s a way to do this from fast lane I couldn’t really say. You might also be able to accomplish this in a script using |
Description:
I spent 5 hours today tracking down why -- after following the instructions for installing OneSignal my flutter app wouldn't run anymore. Not a lot of fun.
The issue is that depending on whim or who knows -- Xcode saves the Runner -> project.pbxproj with all the bundle id's listed (one per scheme) in "random" (doubtful but still) order. This means that the new scheme/target for OneSignal -- PRODUCT_BUNDLE_IDENTIFIER = com.xxx.app.OneSignalNotificationServiceExtension;
Could be first -- and then flutter uses the FIRST BUNDLE_ID it finds if the Info.plist is set to $(PRODUCT_BUNDLE_ID). Which it is by default. Hence, when you run it "simctl launch" tries to launch the wrong bundle id.
The easiest solution - if not the cleanest -- is to set in the Info.plist
Which takes precedence .. the other option is to handle arrange the project.pbxproj to make sure the real app is first - but I think opening Xcode again and saving could re-arrange it? Hard to tell ..
Environment
iOS
Steps to Reproduce Issue:
Anything else:
(crash stacktraces, as well as any other information here)
The text was updated successfully, but these errors were encountered: