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

Simulator #4

Closed
taglia3 opened this issue Jan 14, 2019 · 5 comments
Closed

Simulator #4

taglia3 opened this issue Jan 14, 2019 · 5 comments
Assignees
Labels

Comments

@taglia3
Copy link

taglia3 commented Jan 14, 2019

Can Bagel's Mac app debug network request/response from the iOS Simulator?

@yagiz
Copy link
Owner

yagiz commented Jan 14, 2019

Yes. It can detect simulators. It can even detect whole simulators that run Bagel enabled projects in the same network. @taglia3

@taglia3
Copy link
Author

taglia3 commented Jan 14, 2019

Thanks @yagiz .

In my case the Mac's app doesn't seem to find any simulator / device. Maybe have I to configure come option on my Mac?

If I provide custom configuration on the iOS App it crashes to full stack trace.

i.e.

let bagelConfig = BagelConfiguration()
        
bagelConfig.project.projectName = "Custom Project Name"
bagelConfig.device.deviceName = "Custom Device Name"
bagelConfig.device.deviceDescription = "Custom Device Description"
        
Bagel.start(bagelConfig)

screenshot 2019-01-14 at 19 59 22

@taglia3
Copy link
Author

taglia3 commented Jan 14, 2019

I've solved my issue by changing in the Mac's app code the values of the Bagel.entitlements property from:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>com.apple.security.app-sandbox</key>
	<true/>
	<key>com.apple.security.files.user-selected.read-only</key>
	<true/>
</dict>
</plist>

to:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>com.apple.security.app-sandbox</key>
	<false/>
	<key>com.apple.security.files.user-selected.read-only</key>
	<false/>
</dict>
</plist>

@taglia3 taglia3 closed this as completed Jan 14, 2019
@yagiz yagiz reopened this Jan 15, 2019
@yagiz yagiz self-assigned this Jan 15, 2019
@yagiz yagiz added the bug label Jan 15, 2019
@yagiz
Copy link
Owner

yagiz commented Jan 15, 2019

Changing the values of the Bagel.entitlements properties fixes this issue but there shouldn't be a call loop in the first place. I'm on it. @taglia3

@digoreis
Copy link

@yagiz can close this issue?

@yagiz yagiz closed this as completed Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants